aspose file tools
The moose likes JSP and the fly likes problem uploading files using commons fileupload Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "problem uploading files using commons fileupload" Watch "problem uploading files using commons fileupload" New topic
Author

problem uploading files using commons fileupload

Jag Bains
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
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

Joined: Jan 10, 2002
Posts: 56174
    
  13

Commons is not Struts. I have adjusted the subject for you accordingly.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Jag Bains
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
sorry, my mistake... but any ideas that can point my in the correct direction?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem uploading files using commons fileupload
 
Similar Threads
file uploading to db using servlet
Using commons-fileupload-1.2.1.jar to upload file to MySQL
MULTIPART/FORM-DATA
Upload Image to database through Servlet
upload file question