-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
After a file has been added to the queue and then removed, the same file cannot be added again. #322
Comments
This problem only occurs with 'single' file inputs. Add the multiple attribute and it doesn't happen. I found the same problem last week when I was working with it. This doesn't |
Thanks for the help. Adding multiple does indeed fix it, and with queueLimit set to one, that is a perfectly reasonable fix for now. |
I think that it isn't a problem, if you select just one file so you won't need to clear the INPUT. But to solve this 'problem', I create an FileUploadOption and set it to true when create the instance of FileUpload. And added in isEmptyAfterSelection prototype the verification if your new option is true or false. Maybe I should send a PR about this. |
I am having the same problem. Please take a look at my pull request (#357), which fixes this issue. It uses an extra option as @fabiokiatkowski proposed. |
+1 |
1 similar comment
+1 |
This has been tested in Chrome and Safari and can be seen in the simple example provided on your site:
http://nervgh.github.io/pages/angular-file-upload/examples/simple/
Simply add an item, remove it, and add it again.
I believe it is necessary to reach back into the input file element that the directive is attached to and remove the item from the selection. That is what is preventing the file from being added again.
The text was updated successfully, but these errors were encountered: