-
Problem With apache commons jar
Hi all,
I have taken the latest version of commons-fileupload.jar and tried to upload the file.
I am reading the following way.
DiskFileItemFactory factory = new DiskFileItemFactory();
// Set factory constraints
factory.setSizeThreshold(1000000);
factory.setRepository(new File(""));
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Set overall request size constraint
upload.setSizeMax(1000000);
List items = upload.parseRequest(a_Req);
Test Case 1.
I am trying to upload a zip file which has 3-4 files without any parent directory.
Then i get the correct file path and file names in the List items
Test Case 2:
When I try to upload a zip file which has 3-4 files within a particular directory structure, i am not getting the files names. Instead, i am getting the same zip file name.
Is it that the ServletFileUpload doesn't support these type of zip files or is it that i am missing something?
I tried to search @ http://commons.apache.org/fileupload/.
But coudn't get much info.
Can somebody pls help me out.
Thanks in advance.
Tanuja Goturi
Similar Threads
-
By Michael in forum ASP.NET
Replies: 14
Last Post: 02-24-2006, 08:54 AM
-
By ylithian in forum Java
Replies: 4
Last Post: 11-29-2005, 03:48 PM
-
By JohnsonGPS in forum C++
Replies: 3
Last Post: 11-16-2005, 06:15 PM
-
Replies: 0
Last Post: 10-30-2002, 04:40 AM
-
Replies: 0
Last Post: 12-13-2001, 12:06 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks