Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Directory upload for Internet Explorer

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?

like image 622
Dylan Avatar asked Feb 24 '17 22:02

Dylan


1 Answers

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.

like image 152
cytsunny Avatar answered Sep 28 '22 07:09

cytsunny