I created an input element with type="file", with multiple, webkitdirectory, allowdirs and directory attributes present.
I then added a "change" event handler, and it works when I select a directory of files to upload.
However, if I accidentally select an empty directory, I don't get the change event. Is there any other event I can use to detect that an empty directory has been chosen?
I'd like to be able to tell the user that the directory chosen is empty and to try to pick another one. Right now I have no way of detecting the user has done anything at all, and the user is given no indication of why their choice isn't doing anything.
This has been reported as a bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=360412
but I'd like to know if there's a workaround.