Merge pull request #1269 from nextcloud/fix/download

Fix download action
This commit is contained in:
Louis 2022-09-20 14:22:08 +02:00 committed by GitHub
commit 0299bbd4cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ export default {
downloadUrl() {
const params = new URLSearchParams()
params.append('files', JSON.stringify(this.fileNames))
const filePaths = this.fileNames.map(fileName => '/' + fileName.split('/').splice(3).join('/'))
params.append('files', JSON.stringify(filePaths))
return generateUrl(`/apps/files/ajax/download.php?${params}`)
},