Browser downloads local file without loading

Can I edit a local file without downloading to a browser?

Say the client has an HTML file, I want it to be able to use my javascript site to edit the file without downloading it. Is it possible?

Thanks.

+4
source share
2 answers

Yes, it is possible, but only in HTML5 (and only how browsers support its support ... not everything), you can find the HTML5 API here .

Please note that the user must provide permission to access the file from section 5.9 :

After the user has granted permission, user agents must provide the ability to read and analyze data directly from the local program file.

+4
source

No, this is impossible, and should not be , either because of the security that it may look different.

Note. This feature is in HTML5, as pointed out by @Nick Craver , you may want to go, but you should be aware of the fact that HTML5 is not yet supported by all browsers.

+2
source

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


All Articles