From 394c1d8eaf4e31d6379a065cb2760bc995c5878e Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 10 Sep 2024 08:45:53 +0600 Subject: [PATCH] web/remux: add remux tag to the end of filename closes #720 --- web/src/routes/remux/+page.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/src/routes/remux/+page.svelte b/web/src/routes/remux/+page.svelte index 69af6a09..21c5bbec 100644 --- a/web/src/routes/remux/+page.svelte +++ b/web/src/routes/remux/+page.svelte @@ -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 }) });