Hi Support,
In attachment example project to reproduce the bug.
testUpload.zip (1.4 MB)
Open the browser console F12, I added some console.log debug info.
Steps to reproduce:
-
Click Choose a file
-
From open dialog select a file and click button open
the file name is displayed properly and I have one file at the filelist.
- Once again click Choose a file and click button cancel or x to close the open file dialog without getting any files.
The previous selected file disappears. Why, when I click Cancel the file list is cleared?
Seems to be a behavior of the underlying browser HTML INPUT file type element, presumably to detect a cancel.
Ok could be behavior of HTML INPUT but try this:
- Drop the file (without using Choose a file button)
- Click Choose a file button and click Cancel or X.
In this way the file list is not cleared. Why we have a different behavior for dropped and selected files from open dialog ?
Not sure, we will need to investigate. This component wraps the HTML INPUT FILE type element and as such, inherits its behavior. Do you see the same behavior on different browsers?