• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple File Uploads from Single Form

 
Steve Jovanovic
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
If I have a form that lets the user submit multiple files, how can I get access to each file from within a servlet?
If there were only one file, I'd expect to be able to use ServletRequest.getInputStream(), but what do you do when you've got three files??
Thanks!
Steve
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The multiple files will be uploaded as separate parts of the multipart form. Your servlet will either need to parse the multipart form, or use a package (such as the o'reilly package) that does it for you.
hth,
bear
[ March 30, 2003: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!