You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
640 B
640 B
Influenced by:
- https://github.com/leonadler/drag-and-drop-across-browsers
- https://github.com/silverwind/uppie/blob/HEAD/uppie.js
- https://stackoverflow.com/a/50030399/3192470
Why do we not use getFilesAndDirectories() api?
It’s a proposed spec that seems to be barely implemented anywhere.
Supposed to work in Firefox and Edge, but it doesn’t work in Firefox, and both Firefox and Edge support .webkitGetAsEntry() api anyway.
This page shows how this spec is supposed to function: https://wicg.github.io/directory-upload/, but it only works because of the polyfill.js that uses .webkitGetAsEntry() internally.