mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
Remove "files" arg from download URL in public link page
When no files were specified for download, it means folder download. In this case, no need to pass an empty "files" argument.
This commit is contained in:
parent
f9e1d4d56e
commit
ebfc8b67d7
1 changed files with 4 additions and 2 deletions
|
|
@ -158,9 +158,11 @@ OCA.Sharing.PublicApp = {
|
|||
filename = JSON.stringify(filename);
|
||||
}
|
||||
var params = {
|
||||
path: path,
|
||||
files: filename
|
||||
path: path
|
||||
};
|
||||
if (filename) {
|
||||
params.files = filename;
|
||||
}
|
||||
return OC.generateUrl('/s/' + token + '/download') + '?' + OC.buildQueryString(params);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue