0

Basically the chrome extension I'm making will download an mp3 file, edit the metadata, then download it on the user's machine.

I have the last part done by using chrome.downloads.download() (I'm pretty sure I can download a local path instead of a url).

But, I'm not sure how to download a file like this one into a directory local to the chrome extension (I don't want the user opening the file before it edits the metadata).

  • 1
    I believe this question contains your answer: http://stackoverflow.com/q/13752984/1072229. You only need to focus on `FileSystemApi` for you Chrome extension implementation. – Grisha Levit Jan 21 '17 at 22:00
  • 1
    fetch() the file, save to the filesystem, edit metadata, download() the entry.toUrl(), or skip saving and edit a blob then – Daniel Herr Jan 21 '17 at 22:09
  • Possible duplicate of [How chrome extension download images to extension root directory](https://stackoverflow.com/questions/30130260/how-chrome-extension-download-images-to-extension-root-directory) – brasofilo Dec 19 '18 at 13:00

1 Answers1

0

Nevermind, I found the answer: Broswer ID3 Writer by egoroof. This literally does everything I need. What an amazing library!