wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Multipart form data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Multipart form data" Watch "Multipart form data" New topic
Author

Multipart form data

Abubacker Siddik
Ranch Hand

Joined: Aug 12, 2009
Posts: 90
Hi all,

I just want to know what is multipart form data in Html Forms. I expect correct explanation. What is the relationship with file upload thing in form input?


Abu.A
Aneesh Vijendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 125
Hi there,

You must be aware that there are tow types of form content types:

1. application/x-www-form-urlencoded
2. multipart/form-data

A normal form, when not defined with any enctype (<form>) is "application/x-www-form-urlencoded"
This would serve most of your day-to-day web needs.

But if you want to send:

1. Large amount of Form Data
2. Non-Ascii Data
3. Binary Data (Files)

You "Should" use the enctype as "multipart/form-data"


Recomended further reading :

http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4

Cheers
Aneesh


Cheers
Aneesh
Abubacker Siddik
Ranch Hand

Joined: Aug 12, 2009
Posts: 90
Hi aneesh,

Nice description..I got the point.

Thanks dude.


Abu.A
Aneesh Vijendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 125
Thanks Abu.

Happy Hacking
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multipart form data