[Catalyst] Where is the form field lost?

Octavian Rasnita orasnita at gmail.com
Sun Jan 24 16:37:03 GMT 2010

Hi Stephen,

From: "Stephen Howard" <stephen at enterity.com>
>I believe your problem lies in the browser itself.  I know, for  example, 
>that browsers do not send empty values for checkboxes that  remain 
>unchecked - they simply eliminate that field from the form  submission 
>altogether. Sounds like file fields might be the same way.   Your best bet 
>is to use a bit of scripting on the browser side to mark  a hidden field to 
>stand in for the empty file field.
> - Stephen

I have verified that, and the browser sends the empty upload field, with no 
content, like:


Content-Disposition: form-data; name="file"; filename=""

Content-Type: application/octet-stream


So after the MIME header there is no content, but the header with the name 
of the field ("file") is sent to the server.


More information about the Catalyst mailing list