nervgh / angular-file-upload

[ALMOST NOT MAINTAINED] Angular File Upload is a module for the AngularJS framework
MIT License
3.44k stars 1.13k forks source link

Question: clearing the input.value property to circumvent a bug in chrome #883

Open Nowadays opened 3 years ago

Nowadays commented 3 years ago

I've come across a bug in chrome where if you upload the same file twice in a row, the change event is not emitted unless you clear element.value with null or ''.

I'd like to know what is the purpose of checking if the multiple attribute is present on the input before clearing the value ? (see: https://github.com/nervgh/angular-file-upload/blob/829986e74ed08e3e00ca6b88695bb5649a0bbc2e/src/services/FileSelect.js#L68)

Thank you.