mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-22 18:27:42 +00:00
fix: download path encoding file paths (#5655)
This commit is contained in:
parent
b8151a038a
commit
ffa893e9ac
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue