File failed to add will stay in the input element #622
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The problem is that, if we choose a file that is not able to be added into the queue (not passing filters) and
onWhenAddingFileFailed()is called as expected. However, if we immediately choose the same file,onWhenAddingFileFailed()will not be called again.The reason behind is, after the first selection, the selected file is set to be the value of of the original
<input type="file">. AfteronWhenAddingFileFailed()is called, the value of the input element will not be cleared. Thus if we open the file selector and choose the same file, 'onchange' event will not fired again. AndaddToQueue()will not be called.I also have same issue. +1
I think this is fixed. Tested on Chrome using the file-select directive.
onWhenAddingFileFailed() is called every time with rejected file based on filter method.