Copy link to clipboard
Copied
Trying to download file, it downloads and data becames corrupted after saving it...
const response = await fetch("https://some_url.mp3");
const content = await response.text();
window.cep.fs.writeFile(new CSInterface().getSystemPath(SystemPath.EXTENSION)+'/cache/music.pdf',content)
Any ideas?
You're writing to your extension's own directory, which will invalidate its signature and prevent the host from loading it in future sessions.
Copy link to clipboard
Copied
You're writing to your extension's own directory, which will invalidate its signature and prevent the host from loading it in future sessions.