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

[Suggestion] Clear loaded files after upload #145

Open
Ericky14 opened this issue Feb 12, 2017 · 1 comment
Open

[Suggestion] Clear loaded files after upload #145

Ericky14 opened this issue Feb 12, 2017 · 1 comment

Comments

@Ericky14
Copy link

Is there a way to implement a way to clear all the files loaded after the upload is finished without refreshing the page? If you upload one file and then try to upload the same one again, it won't work because fileLoaded isn't called again.

@breenatheseira
Copy link

I know I'm commenting on an old issue, but I was stumped on this for a while.

I needed this feature for a validation on a file. Once the file's data was fixed, sometimes the file size remained the same; thus the erroneous file that was loaded is not cleared even though the contents were different.

I used this $('input[type=file]').val(''); to clear the loaded file, so the same file with the same size but different contents can be uploaded again. I don't think it's very elegant, but it works for my use case and hopefully will help someone if they have the same issue :)

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

2 participants