im trying to use a gaming site to play games on my computer
im trying to play games on a gaming site and it wonte let me download
im trying to play games on a gaming site and it wonte let me download
I'm writing an extendion wich needs to download a file: ```js let url = URL.createObjectURL(new Blob([content + '\n'])); try { const id = await browser.d… (और पढ़ें)
I'm writing an extendion wich needs to download a file:
```js
let url = URL.createObjectURL(new Blob([content + '\n']));
try { const id = await browser.downloads.download( { filename: "some_name", saveAs: false, conflictAction: "overwrite", url: url } );
await browser.downloads.erase({id: id}); } finally { URL.revokeObjectURL(url); }
```
If the file does not exist yet, it works great. If the file exists but is exactly the same, it still works. But if there is a need to override the file with different content, the file gets deleted and it is not being replaced.
According to inotifywait, the new file IS created, but immediately deleted.
Do I understand something wrong? What am I supposed to do?
Pop up from Safari states; The file “Firefox 140.0.2.dmg.download” doesn’t appear to be a valid download file.