• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jakarta FileUpload

 
Juan Carlos
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The org.apache.commons.io package is not part of commons-fileupload-1.1.jar.
[ May 22, 2006: Message edited by: Bear Bibeault ]
 
Juan Carlos
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic