Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue using FileUploader component in a modal need to be fixed #140

Open
peppapig13132 opened this issue May 9, 2024 · 2 comments
Open

Comments

@peppapig13132
Copy link

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

@FE-Purr
Copy link

FE-Purr commented Jul 25, 2024

same issue

@niranjan404
Copy link

You can null the uploaded file using cancel funciton:

ref: https://youtu.be/nCf7wb8a4YM?t=996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants