Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Unable to catch error response details #29

Open
bionicvapourboy opened this issue May 2, 2018 · 2 comments
Open

Unable to catch error response details #29

bionicvapourboy opened this issue May 2, 2018 · 2 comments

Comments

@bionicvapourboy
Copy link

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 ?

@zackify
Copy link
Contributor

zackify commented May 2, 2018

it should be passing back the response as well: https://github.com/navjobs/upload/blob/master/src/request/register-listeners.js#L21

@sd890623
Copy link

sd890623 commented Nov 8, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants