Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return false onSubmit clears the queue #198

Open
webmasterMeyers opened this issue Jul 18, 2017 · 0 comments
Open

return false onSubmit clears the queue #198

webmasterMeyers opened this issue Jul 18, 2017 · 0 comments

Comments

@webmasterMeyers
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant