LPology/Simple-Ajax-Uploader — pull request #37 by KSDaemon (2014-01-07 18:04:00+00:00)
Title: Extended onError method for returning also response object

Hi! Happy new year! :)
Thanks for a great uploader: it's small and simple and do the stuff!
But, in my case, i have a REST JSON API, which always response me a json, and some http status code (which is not always 200/OK). So, to notify user about some server-side validation errors, i need access to response object in onError callback. You have provided this object in onComplete callback, but not in other cases. If you don't mind, i have extended onError callback, to also contain response object, if it exists, or FALSE in other cases.