Re: z3c.form: Default form content type

Martijn Pieters <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Sun, Apr 10, 2011 at 15:54, Markus Kemmerling
<[email protected]> wrote:
> By default z3c.form sets the form content type to 'multipart/form-data' (the default value of IInputForm['enctype']). According to http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4 this MIME type "should be used for submitting forms that contain files, non-ASCII data, and binary data." Shouldn't the default value rather be set to the default content type of HTML forms, i.e. 'application/x-www-form-urlencoded'?

The majority of forms use Unicode widgets, so this falls under the
heading of non-ASCII data. Also, it'd be almost impossible to
auto-detect when binary data will be handled by the form, unless you
start introspecting widget output, so the default looks entirely sane
to me.

-- 
Martijn Pieters
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.