angular-file-upload icon indicating copy to clipboard operation
angular-file-upload copied to clipboard

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

Open Nowadays opened this issue 5 years ago • 0 comments

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.

Nowadays avatar Sep 24 '20 13:09 Nowadays