Symptoms
We have a form, where a user can upload file attachments, followed by the user clicking a submit button.
However, if the file is large (upload takes some time), and the user clicks the submit button before the upload is done, then the file handling done in the submit-button-clicked rule will not handle the file (which is still being uploaded).
One solution would be to disable the submit button, while the file attachment control was working, but I can't seem to find any events except for: "Changed" on the control.
How would I go about making sure that the user can't click on the submit button until the file attachment control finishes uploading the file?
Diagnoses
How To
Resolution
When you initialize the view, you have to disable the "submit" or "upload" button. When "on change" happens with the upload control, you can enable the button again.
I reproduced this on SmartForms 1.0.7