Closed gingerkid77 closed 8 years ago
At what point in the process is the upload button first disabled?
Hi when a file is submitted. The button is clicked and the onSubmit() method is invoked. The button is disabled and the progress bar is shown. The upload is interrupted (I think) and onError() is invoked but the button remains disabled.
My temporary fix was to call destroy() for the plugin in this event and recreate it. Not the most elegant solution but it works.
Does this work?
onError: function() {
// other stuff
this.enable();
}
I'll test and update the ticket
Any update?
Hi
Firstly - plugin is great, simple to use. Thanks.
I have got it working very well in my app. I have an issue though if the upload fails for any reason (interrupted upload, bad URL etc). The onError() function I provide fires, but the upload button remains disabled and the upload cannot be retried.
How do I reset the plugin so an upload can be retried?
Plugin code / config below.
`
`