KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
248 stars 91 forks source link

how to reset the file uploader? #102

Closed bhavya-agathsya closed 2 weeks ago

bhavya-agathsya commented 1 year ago

Even after deselecting all the selected images the file uploader still showing file uploaded successfully text. It should show upload or drop a file like before. I tried fileOrFiles option but it didn't worked for me. So how can I make it work ??

KarimMokhtar commented 2 weeks ago

@bhavya-agathsya sending fileOrFiles={null} should solve the issue, make sure you are using v. 2.3.10 or above