1

Hi I tried to save/edit/create a file as I am used to with js. However nothing is working in the chrome extension.

Does someone know how to do it? I looked here on stackover and did not found satisfied results.

HiFive122
  • 11
  • 1
  • 7
  • Chrome extensions cannot create/modify local files. – Iván Nokonoko Dec 05 '21 at 18:56
  • @IvánNokonoko thanks but how can I import files? Is there an option to save it in the chrome data and afterwards crawl/open it with another program? – HiFive122 Dec 05 '21 at 21:34
  • You can dynamically create and initiate file download in browser, then use any program from there on, on the local system, to read the file from downloads directory. – Neea Dec 06 '21 at 07:15
  • @Neea thanks for your answer, what would be the shortest js code to generate this type of download files? – HiFive122 Dec 09 '21 at 11:44
  • see this answer for an example: https://stackoverflow.com/a/19328891/4054683 – Neea Dec 09 '21 at 16:12

0 Answers0