• Post Reply Bookmark Topic Watch Topic
  • New Topic

File Upload

 
srinu varsha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
am trying to upload files using
org.apache.commons.fileupload package
while am parsing the request as

DiskFileUpload upload = new DiskFileUpload();
List items = upload.parseRequest(request);

am getting the list size as zero

can any body please help me

regards

srinu
 
Khan Malamir
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your request mime type multipart/form-data? Your HTML should be something like this:
<form ACTION="AttachFile" ENCTYPE="multipart/form-data" METHOD="post">
....
</form>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!