Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multipart form data

 
Abubacker Siddik
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Abubacker Siddik
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi aneesh,

Nice description..I got the point.

Thanks dude.


Abu.A
 
Aneesh Vijendran
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Abu.

Happy Hacking
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic