Reputation: 604
I want to read files and sub folders under a folder selected through <input type="file">
I am aware of the fact that I could use <input type="file" multiple webkitdirectory />
. Since this solution is chrome specific I cannot use it.
I have searched extensively online but did not find a solution that would work on all browsers to read the files/sub folders of a selected folder using javascript,html5, angularjs or jquery.
Please advise how to achieve this functionality.
Upvotes: 2
Views: 1308
Reputation: 10383
Taken from here:
FileSystem API is currently being supported only on Chrome and Opera http://caniuse.com/#feat=filesystem
Also you need to obtain permissions from the user to access peristent data.
For more info refer to this article : https://www.html5rocks.com/en/tutorials/file/filesystem/#Reading a directory's contents
Upvotes: 1