In Firefox, Write to a File using Javascript?

后端 未结 4 1400
庸人自扰
庸人自扰 2020-12-06 19:33

Situation:- I have created a installation setup(local) that returns a URL eg:- ved.test.com which is mapped to an IP 11.22.33.44. Thus to make the web application accessibl

4条回答
  •  [愿得一人]
    2020-12-06 20:14

    You will need to create your own Firefox extension, because reading/writing local files is considered a privileged operation.

    Reading/writing files using XPCOM: https://developer.mozilla.org/en-US/docs/Code_snippets/File_I_O. This won't work from your web page but only from privileged code such as extensions.

提交回复
热议问题