I am using Blueimp File Uploader to upload files and submit a fields with the form. The file attachments are optional, so I want the Submit button to submit the form even if no file is queued for upload. In that case I would just capture the form fields that are being supplied.
How do I make the plug-in to work in the above fashion.
There is an alternate to that.
Make the upload action different from form submit action.
Upload the files, and let the form return the uploaded file path, and then send them to the submitted form.