malsup/form — Issue #144: ajaxForm + file input + disabled button beforeSubmit = missing button
Author: peterpham
Created: 2011-10-29 11:50:17+00:00
State: open

I have a form that containing a file input. When I use option "beforeSubmit" to disable the submit button, that disabled button will not be sent to the server.
Example code:

Upload

Upload

In this example"
when pressing the submit button upload1, form fields sent to the server include:
form.myvar1
form.myfile1
form.upload1

however, in second example, after pressing submit button, form fields sent to server only include
form.myvar2
form.myfile2

It appears that form.upload2 is missing.

Note: if there is no file input on the form, both examples behave the same, that is, in both cases, button name is sent along with other form fields.