From ffa893e9ac387a49dba5917a41df7c3b7ce120fc Mon Sep 17 00:00:00 2001 From: Jagadam Dinesh Reddy Date: Sat, 3 Jan 2026 13:23:21 +0530 Subject: [PATCH] fix: download path encoding file paths (#5655) --- 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);