[英]How to download a file to a directory in my chrome extension?
Basically the chrome extension I'm making will download an mp3 file, edit the metadata, then download it on the user's machine. 基本上,我正在制作的chrome扩展程序将下载mp3文件,编辑元数据,然后将其下载到用户的计算机上。
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). 我使用chrome.downloads.download()
完成了最后一部分(我敢肯定我可以下载本地路径而不是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). 但是,我不知道如何下载一个文件, 这样一个为当地Chrome扩展程序(我不希望用户打开该文件它编辑元数据之前)的目录。
Nevermind, I found the answer: Broswer ID3 Writer by egoroof . 没关系,我找到了答案: egoroof的Broswer ID3 Writer 。 This literally does everything I need. 这确实可以满足我的所有需求。 What an amazing library! 多么惊人的图书馆!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.