react-drag-drop-files
react-drag-drop-files copied to clipboard
Issue using FileUploader component in a modal need to be fixed
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.