web/remux: add remux tag to the end of filename
Some checks are pending
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run

closes #720
This commit is contained in:
wukko 2024-09-10 08:45:53 +06:00
parent 2fcda9c705
commit 394c1d8eaf
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -136,8 +136,14 @@
if (!render) {
return console.log("not a valid file");
}
const filenameParts = file.name.split(".");
const filenameExt = filenameParts.pop();
const filename = `${filenameParts.join(".")} (remux).${filenameExt}`;
return await downloadFile({
file: new File([render], file.name, {
file: new File([render], filename, {
type: render.type
})
});