Check File exist in Folder using Javascript

后端 未结 4 731
灰色年华
灰色年华 2021-01-29 15:28

I want to check a file exist in folder. Below code is while i\'m trying to many times is not working.






        
4条回答
  •  灰色年华
    2021-01-29 15:59

    This wont work because your browser does not have access to your file system.

    you can run this from a node.js server

    see https://en.wikipedia.org/wiki/JavaScript#Security

提交回复
热议问题