cj-upload
cj-upload copied to clipboard
Unable to catch error response details
In Uploader component, in onError prop callback I get as argument of function only one boolean value, instead of full server response (which include validation on additional data sent with files and on the file itself). With only a true/false flag I can't expose to the user the validation error in order to get a valid submission. I am missing somenthing in docs or it is a feature not yet implemented ?
it should be passing back the response as well: https://github.com/navjobs/upload/blob/master/src/request/register-listeners.js#L21
Will it be better if the response is included in the onError callback parameters. At the moment the response can be only read from the children function of Uploader component.