Simple-Ajax-Uploader
Simple-Ajax-Uploader copied to clipboard
return false onSubmit clears the queue
If I return false in the onSubmit function (because extra form elements are not filled out) the queue is cleared and a second attempt to upload after adding missing info fails because there is nothing to upload.
My work around is to call a validation function with the submit button, and after that, call uploader.submit() . The form button needs to have onclick="return false"
to prevent Simple-Ajax-Uploader from uploading the file even if the validation function is returning false.