1

I need to know how to make a function(s) that directly creates, and can modify or edit files on your disk from the chrome extension without downloading it. Something like

function savefile(file) {
// function to save file
}

I don't understand how to do this inside a chrome extension and if it is even possible

  • 2
    Does this answer your question? [How can a Chrome extension save many files to a user-specified directory?](https://stackoverflow.com/questions/19802032/how-can-a-chrome-extension-save-many-files-to-a-user-specified-directory) – Gergely Szabo Dec 02 '19 at 22:31
  • Check [Chrome extension: How to save a file on disk](https://stackoverflow.com/questions/2153979/chrome-extension-how-to-save-a-file-on-disk) – Saud Aljaffer Dec 03 '19 at 00:13
  • Does this answer your question? [Chrome extension: How to save a file on disk](https://stackoverflow.com/questions/2153979/chrome-extension-how-to-save-a-file-on-disk) – Saud Aljaffer Dec 03 '19 at 00:14
  • Extensions can only download files. [Apps](https://developer.chrome.com/apps/about_apps) can write files directly but only on ChromeOS. There's an old HTML5 FileSystem API but it's only for internal virtualized files so not usually helpful. The closest thing is the new upcoming [Native File System API](https://web.dev/native-file-system/) but again it's not usable yet. – wOxxOm Dec 03 '19 at 04:20

0 Answers0