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

Fix onChange 3rd argument not button bug #115

Closed zaygraveyard closed 9 years ago

zaygraveyard commented 9 years ago

When using XHR for upload, the onChange() event handler is called with the size as 3rd argument not the uploadBtn, rendering the API inconsistant.

The fix is very simple as shown by this pull request.

LPology commented 9 years ago

Merging your PR. Thank you for this.