| Author |
FileUpload using DiskFileUpload
|
Visu Guri
Greenhorn
Joined: Oct 06, 2004
Posts: 2
|
|
All I am trying to upload a .xls file using DiskFileUpload.The code snippet is as follows. DiskFileUpload upload = new DiskFileUpload(); // Set upload parameters upload.setSizeThreshold(yourMaxMemorySize); upload.setSizeMax(yourMaxRequestSize); upload.setRepositoryPath(yourTempDirectory); // Parse the request List /* FileItem */ items = upload.parseRequest(request); If I try to print size and items in the List its displaying 0 and [ ] respectively. Your valuable help can be appreciated. Thanks anm
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56549
|
|
|
Moved to the Servlets forum.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Neeraj Dheer
Ranch Hand
Joined: Mar 30, 2005
Posts: 225
|
|
|
Can you post the html code? Have you set the enctype attribute of 'form' to multipart/form-data ?
|
 |
 |
|
|
subject: FileUpload using DiskFileUpload
|
|
|