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?
+2
A:
Here's the W3C doc on both items. It's pretty dry but it can help some.
Ólafur Waage
2009-06-10 09:30:52
+1
A:
The default encoding of appliaction/x-www-form-urlencoded can't send a) large quantities or binary data or b) text containing non-ASCII characters. That's why you need to set it to multipart/form-data for file uploads.
Sohnee
2009-06-10 09:31:21
A:
Request.form is not working when enctype="multipart/form-data" is used. Am I doing something worng in the code?
spraocs
2009-11-11 03:06:25