wubocong / react-upload-file

react upload component
MIT License
28 stars 25 forks source link

uploadSuccess called on 400 response #10

Open BarrySW19 opened 7 years ago

BarrySW19 commented 7 years ago

I'm using the component to upload a file which causes a server side error and an HTTP 400 response, but the component is still calling the uploadSuccess function. I can't see that I'm doing anything wrong.