Read local file

Is there no way for javascript hosted on a web server to read a file on the client's local machine? (this has obvious security risks). I think I'm wondering if there is access provided by the user, for example, dragging a file into a browser or explicitly selecting a file from a pop-up window to get around this?

I know that flash 10 allows you to read a local file, just wondering if there is any method for doing this in javascript.

thanks

+2
source share
4 answers

... or by explicitly selecting a file from a popup to get around this ...

Of course, you can just upload the file to your server, then ...

+2
source

Who, by common sense, will release a browser that allows JS ... oh wait, you can with activeX, but only works with IE.

+2
source

Source: https://habr.com/ru/post/1345668/


All Articles