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

nv-file-select selection of same file after removing it does not work #550

Open
JuHwon opened this issue Nov 20, 2015 · 6 comments
Open

Comments

@JuHwon
Copy link

JuHwon commented Nov 20, 2015

Should the isEmptyAfterSelection function in the src/services/FileSelect.js really only be dependent on the multiple attribute? I e.g. need to reset the input field without the multiple attribute after selection.

I got a input element with the nv-file-select attribute like this

    <input id="upload-input"
           ng-disabled="vm.uploader.isUploading"
           type="file"
           accept=".ext"
           nv-file-select=""
           uploader="vm.uploader">

When i have selected the file foo.ext and then i am removing it with item.remove(); it is not in my queue anymore. Though the input element still has the value foo.ext. So when i want to select this file again because i have removed it accidentally - it wont work since the change event will not be thrown.

@JuHwon JuHwon changed the title nv-file-select isEmptyAfterSelection only with multiple attr? nv-file-select selection of same file after removing it does not work Nov 20, 2015
@leguin
Copy link

leguin commented Jan 7, 2016

having similar issue, any workarounds?

@leguin
Copy link

leguin commented Jan 8, 2016

I found the solution the follow link: #357
Just update the angular-file-upload.js or you can add additional condition
(https://github.com/nervgh/angular-file-upload/pull/357/files)

@tomahim
Copy link

tomahim commented Jun 16, 2017

This fix which reset the value of the input element doesn't work in IE10, and probably other versions of IE. Any idea of the correct way to fix this in IE ?

@MahikanthNagY
Copy link

Take the latest version of angular-file-upload.js. It has the fix for IE

@ismailarilik
Copy link

This worked for me: #322 (comment)

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

5 participants