简体   繁体   English

如何将文件下载到chrome扩展名的目录中?

[英]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.

相关问题 如何将文件下载到Chrome扩展程序的扩展程序文件夹中? - How do I download a file to the extension folder in a Chrome extension? 使Chrome扩展程序下载文件 - Making a Chrome Extension download a file 如何将 Javascript 数组转换为 CSV 文件并从 Chrome 扩展程序下载? - How to convert Javascript array into CSV file and download it from Chrome Extension? 如何使用JavaScript设置chrome扩展的文件下载位置? - How to set the file download location for chrome extension Using JavaScript? 如何从Chrome扩展程序下载公开的Google云端硬盘文件? - How to download public Google Drive file from Chrome Extension? 如何在不打开新标签的情况下在Google Chrome扩展程序中下载文件 - How to download file in google chrome extension without opening a new tab Chrome APP/Extension 从 URL 下载文件 - Chrome APP/Extension download file from URL 我的Firefox扩展程序如何下载部分下载的文件? - How can my Firefox extension download a partially downloaded file? 如何在Chrome扩展程序中覆盖下载过程 - How to override download process in Chrome Extension 如何在我的manifest.json文件中包括jQuery扩展的jQuery - How to include jQuery in my manifest.json file for a chrome Extension
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM