mirror of https://github.com/nextcloud/photos
Merge pull request #1269 from nextcloud/fix/download
Fix download action
This commit is contained in:
commit
0299bbd4cb
|
@ -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}`)
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue