I want to allow users dragging and uploading directory and files.
i know i could create
<input type="file" multiple />
<!-- for files/multiple files upload-->
and
<input type="file" directory mozDirectory webkitDirectory />
<!-- for directory uploads -->
i tried detecting while user is dragging the item if it is a directory or file and setting directory attribute depending on that, but turns out that javascript doesn't allow you to check that.
also i have seen on lot of websites that users are able to drag both files and directories together and even multiple directories.
how can i achieve that?