Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jakarta FileUpload  RSS feed

 
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
Posts: 65824
134
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!