How to get local folder contents using JavaScript

后端 未结 1 991
鱼传尺愫
鱼传尺愫 2021-01-16 10:32

I am trying to get local folder contents using JavaScript. I have tried the Filesystem API, but I got error like this:

DOMException: It was determined that

相关标签:
1条回答
  • 2021-01-16 11:07

    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

    0 讨论(0)
提交回复
热议问题