Check File exist in Folder using Javascript

后端 未结 4 766
灰色年华
灰色年华 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:48

    As I learned years ago you cannot access local file system with JS from browser, but things change. You can find more info here:

    Local file access with javascript

    The article directs you to MDN but the solution works only in certain browsers:

    https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API

提交回复
热议问题