I found out what was going wrong... My form is using "multipart/form-data" encoding and it turned out that setting "iframe: true" in the option is solving the problem.
I read here (http://www.malsup.com/jquery/form/#code-samples) that "Since it is not possible to upload files using the browser's XMLHttpRequest object, the Form Plugin uses a hidden iframe element to help with the task." but it seems I missed the end of the section: "if a file has not been selected by the user for the file input then the request uses normal XHR to submit the form (not an iframe)." However, I think it could be a good idea if the plugin would force using an iframe when the encoding is "multipart/form-data", even if the file input is empty. Thanks, Claude On Apr 2, 2:45 pm, Claude Vedovini <claude.vedov...@gmail.com> wrote: > Hi all, > > I am using the latest version of the jQuery Form plugin, tested with > both FF and Safari and here is my problem: > > I've got a form with a text area and an optional file field, the > problem occurs when I leave the file field blank: > - when I use normal form submit everything is working as expected > - but when I hook the form plugin I got a 500 server error complaining > about the file field (which is empty) > > it actually seem that the server receives the file field with no data > and chokes when using the plugin, I think this is a bug as it clearly > seems like there is a difference between a normal submit and the > plugin's > > what do you think? > Claude