I'm using the webkitdirectory attribute on my page for allow the user to upload a whole directory:
<input webkitdirectory type="file" />
This works great for Chrome, Firefox and Edge, but is unsupported for Internet Explorer. Is there a alternative in order to support IE?
No, there will be no alternative if the browser itself does not support, as this is related to file system which javascript in webpage cannot reach.
One alternative is to use the multiple
attribute to upload multiple files (reference), but this still is only supported in IE10, and it won't keep the directory structure.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With