[Seaside] Re: file upload
cdrick65 at gmail.com
Sat Feb 16 00:00:17 UTC 2008
> > I wonder how this callback is trigger **at all**, if you don't declare
> > the form as being multipart?
> > Lukas
> Could you explain why it has to be part of a multipart form? I hope the
> answer is not too obvious :)
not too obvious (wasn't really aware of it) but documented in the
method ;) Searching is not so easy... to find the method I searched
for selectors containing multipart (cmd+shift+w), then (there are
some) I had to find the class where it's defined...
Google helped me too :)
"Sets the content type used to submit the form to the server (when
the value of method is 'post') to multipart/form-data instead the
default application/x-www-form-urlencoded. This should be used in
combination with a WAFileUploadTag."
self attributeAt: 'enctype' put: 'multipart/form-data'
more information here:
"The content type "application/x-www-form-urlencoded" is inefficient
for sending large quantities of binary data or text containing
non-ASCII characters. The content type "multipart/form-data" should be
used for submitting forms that contain files, non-ASCII data, and
More information about the seaside