From b4710b4e2d63766f850c16c03afeb369f4625d08 Mon Sep 17 00:00:00 2001 From: jagadam97 Date: Thu, 1 Jan 2026 15:38:29 +0530 Subject: [PATCH] fix: download path encoding file paths --- frontend/src/api/pub.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/api/pub.ts b/frontend/src/api/pub.ts index 964cb030..5070cae3 100644 --- a/frontend/src/api/pub.ts +++ b/frontend/src/api/pub.ts @@ -41,12 +41,12 @@ export function download( let url = `${baseURL}/api/public/dl/${hash}`; if (files.length === 1) { - url += encodeURIComponent(files[0]) + "?"; + url += files[0] + "?"; } else { let arg = ""; for (const file of files) { - arg += encodeURIComponent(file) + ","; + arg += file + ","; } arg = arg.substring(0, arg.length - 1);