W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] Is there any reason for the continued existence of enctype attribute at the form element

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 05 Oct 2009 16:37:35 -0400
Message-ID: <4ACA590F.1040800@mit.edu>
On 10/5/09 12:48 PM, Mark Kaplun wrote:
> I have only learned now that there is a "text/palin" option that I have
> never heard of, so maybe I'm wrong, but my impression is that there are
> only two forms of form, a textual and a file upload. IMHO the browser
> can inspect the form before submitting it and decide by itself what is
> the correct encoding to use.

You can use multipart/form-data with a form that doesn't include any 
file uploads (and people do this).  Presumably they might have reasons 
for this (e.g. they happen to have a sane multipart MIME parsing library 
and don't want to deal with the url-encoding mess the 
application/x-www-form-urlencoded option produces.

-Boris
Received on Monday, 5 October 2009 13:37:35 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:17 UTC