• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem uploading files using commons fileupload  RSS feed

 
Jag Bains
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to use the file upload that comes with commons-fileupload-1.0.jar

I can't seem to get the file in my servlet.

The html snippet of my code is :


In my servlet i have the following:



On the

java.util.List items = upload.parseRequest(request);
cat.debug("just get a list of items from parsing request "+items.toString());

I only get the following response in my log output which makes me think I am doing something wrong in the HTML section.:

2005-07-03 18:23:02,806 DEBUG com.jag.petardscmsservlet.CMSGenericRequestAction
- just get a list of items from parsing request []

Any ideas?

[ July 03, 2005: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Commons is not Struts. I have adjusted the subject for you accordingly.
 
Jag Bains
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, my mistake... but any ideas that can point my in the correct direction?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!