*
The moose likes Servlets and the fly likes Jakarta FileUpload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Jakarta FileUpload" Watch "Jakarta FileUpload" New topic
Author

Jakarta FileUpload

Juan Carlos
Greenhorn

Joined: May 20, 2006
Posts: 8
Here is the sample code I am trying to run from http://www.theserverside.com/tt/articles/article.tss?l=HttpClient_FileUpload but keep getting the errors:



but I keep getting the following error:


Can someone tell what am I doing wrong. I have commons-fileupload-1.1.jar in my classpath. I even tried someother samples but keeps getting the same error
i.e. parseRequest(request); I really want to upload an xml file only and read it's content from memory in the servlet and do the processing. Any help is appreciated.

Thanks
[ May 22, 2006: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

The org.apache.commons.io package is not part of commons-fileupload-1.1.jar.
[ May 22, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Juan Carlos
Greenhorn

Joined: May 20, 2006
Posts: 8
Thanks, How can I make sure that uploaded file is xml file. I want to upload only xml files. Is there a way that I can restrict upload of files to certain types. Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jakarta FileUpload
 
Similar Threads
http status error 404
Upload files from client
problem with commons FileUpload
File Upload Error
Problem with File Upload