Closed vasicek58 closed 4 years ago
You should file a bug against Chrome - use https://new.crbug.com
FYI: The reason you get EncodingError
rather than something more meaningful is just weirdness in Chrome's implementation where internally there are file system URLs being used to reference these items; if FS URL can't be resolved for some reason an EncodingError
ends up surfacing. https://crbug.com/608060 has a similar reason for the silly error type here.
Be sure to include details on the OS and what files you're dropping. I just tried on macOS with a pretty large tree and didn't hit any exceptions. Closing since this is an implementation issue, not a spec issue.
It seems like it's a Windows issue for some reason, I asked a friend of mine to test it on macOS and it went fine as well. Thanks for the fast reaction and all the info!
Thanks @vasicek58 ! If you drop the crbug link here I'll try to get it looked at.
Great, thank you: https://crbug.com/1084223
For posterity: the problem only arises in Chrome if the page is hosted at file:// rather than an HTTP origin. More details in the Chrome bug.
When I try the basic example that would process a directory tree and print the name of the items in it, and run it in Chrome (version 81.0.4044.138), I get the following error in readEntries:
It seems to work well in Firefox and Edge. Do you know what is the problem?