A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
FileUpload using DiskFileUpload
Joined: Oct 06, 2004
Oct 16, 2005 06:32:00
I am trying to upload a .xls file using DiskFileUpload.The code snippet is as follows.
DiskFileUpload upload = new DiskFileUpload();
// Set upload parameters
// 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.
Author and ninkuma
Joined: Jan 10, 2002
Oct 16, 2005 10:20:00
Moved to the
Asking smart questions
Books by Bear
Joined: Mar 30, 2005
Oct 17, 2005 05:53:00
Can you post the html code? Have you set the enctype attribute of 'form' to multipart/form-data ?
I agree. Here's the link:
subject: FileUpload using DiskFileUpload
File upload in struts
Problem while uploading xls file through Servlet program.
FileUpload size limit error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015