Simple-Ajax-Uploader icon indicating copy to clipboard operation
Simple-Ajax-Uploader copied to clipboard

return false onSubmit clears the queue

Open webmasterMeyers opened this issue 7 years ago • 0 comments

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.

webmasterMeyers avatar Jul 18 '17 15:07 webmasterMeyers