In HTML forms containg file uploads, enctype="multipart/form-data" attribute has to be set. This much I know. But why? What exactly does it change? How does it differ from application/x-www-form-urlencoded?
3 Answers
2
votes
2
votes
2
votes
A multipart request can have multiple parts (sic). Thus you can send files in the HTTP request along with the rest of the request.
Multipart can also be found in emails with attatchments.