vutoan266 / react-images-uploading

The simple images uploader applied Render Props pattern that allows you to fully control UI component and behaviors.
https://github.com/vutoan266/react-images-uploading
MIT License
320 stars 52 forks source link

paramater onError at props #8

Closed kuzanto closed 4 years ago

kuzanto commented 4 years ago

Hello,

Can I get error value at props parameter like onError than at exported options? Because sometimes we need to get have custom error like with popup or modal or alert than just free text.

Thank you, Regards

vutoan266 commented 4 years ago

Hi Kuzato, Sorry for too late reply to you. I have considered about your suggestion and workaround in my working. So I think it is necessary to have an onError function to trigger each validation has errors. I have released in version 2.2.2. Thank you for your suggest. Have a nice day.