LPology / Simple-Ajax-Uploader

Javascript file upload plugin with progress bar support. Works in all major browsers, including IE7+, Chrome, Firefox, Safari, and Opera. No dependencies - use it with or without jQuery.
995 stars 267 forks source link

onAbort not working! #171

Open ingandread opened 8 years ago

ingandread commented 8 years ago

Hellow

I am using the uploader to upload files. But I can not run the cancellation. I can not find documentation to clarify this process.

Whats the error in my code:

........ onSubmit: function (d) { this.setProgressBar(progressBar); msgBox.innerHTML = ''; // empty the message box btn.innerHTML = 'Cargando...'; // change button text to "Uploading..."

                progressBar.appendChild(abort);
                abort.className = 'btn btn-sm btn-info';
                abort.innerHTML = 'Cancel';
                this.setAbortBtn(abort, true);

            },

onAbort: function (filename, abort, size) { alert('abortar subida'); <= here not firing!!! },

help! Thanks!!!