react-drag-drop-files icon indicating copy to clipboard operation
react-drag-drop-files copied to clipboard

Issue using FileUploader component in a modal need to be fixed

Open peppapig13132 opened this issue 9 months ago • 2 comments

Thanks for this easy-to-use library.

Recently, I tried to use this component in file upload modal. You can see an issue here. When you close the modal, the component still keeps file data, and you will see it again after re-opening the modal.

What I want to see here is initial message - Upload or drop a file right here instead of Uploaded Successfully! Upload another?.

How can we get it?

setFile(null) can only initialize the selected file name message as No file uploaded yet.

image

peppapig13132 avatar May 09 '24 13:05 peppapig13132