Home > Mobile >  How to list local files in a folder using JavaScript?
How to list local files in a folder using JavaScript?

Time:06-13

I am a beginner using JavaScript in the past two days I am searching for a solution to access the list of files using Javascript but I could not find any solution.

I am trying to build a web app that can show the list of the text files on the client's computer and then click it to open. If there is any other way to achieve this goal using another technology, please advise me which one would be the best.

The operating system now I am using is windows it would be good if I could have the same functionality on all other operating systems.

Thanks in advance

CodePudding user response:

As it is commented by @sirko and @Bravo it is not possible to give access to the files on the local drive with the browsers it is all because of security reasons. The only way to access files on the browser is to use the input tag with "file" attribute.

  • Related