File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes multipart/form-data encoded formdata Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "multipart/form-data encoded formdata" Watch "multipart/form-data encoded formdata" New topic

multipart/form-data encoded formdata

Sander Fieten

Joined: Mar 08, 2001
Posts: 13
I'm using a simple form with two fields, one of them being of FILE type. This file must be multipart/form-data encoded when send to the server.
How can I easily get the values of the form fields, including the uploaded file. Must I read the InputStream and decode it myself?
paul sun

Joined: Dec 22, 2000
Posts: 28
Some already wrote some utils to do this for, eg,
I agree. Here's the link:
subject: multipart/form-data encoded formdata
It's not a secret anymore!