Mustang
Mustang

Reputation: 604

Read the contents of a folder with files/sub folders with javascript/html5/angularjs/jquery

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

Answers (1)

abalter
abalter

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

Related Questions