Hi,
I'm trying to integrate jQuery File Upload into an existing form. I have it set up and working great, however, I'd like the file upload to be optional so if no files are selected the rest of the form fields are still submitted.
I've searched long and hard about this and can find no solution at all - only lots of people with the same problem, so it doesn't appear that the plug-in supports this. So plan B is to just try to hack it some other way.
Would there be a way to bind the upload start event to a custom button, but intercept that button to detect whether any files have been selected first; if so then upload everything as normal; if not then call a non-file-upload function to handle the file-less upload? Does this sound like the best solution to achieve this?
I didn't anticipate this being such a huge problem, so I'm seriously under pressure now for a solution so any pointers would be very much appreciated.
Many thanks!