angular-file-upload
angular-file-upload copied to clipboard
Question: clearing the input.value property to circumvent a bug in chrome
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.