diff options
author | Olivier Paroz <github@oparoz.com> | 2015-08-19 02:52:12 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-08-19 02:52:13 +0300 |
commit | 7d393650e7e231a68038ccb9fd069cd95746806b (patch) | |
tree | 1ff0b8eab9bc03c84d995269b00afd40d928e0d8 /js/galleryfileaction.js | |
parent | 8a002c4633c896c531d60d4042fe5276172bb157 (diff) |
Add download API
Diffstat (limited to 'js/galleryfileaction.js')
-rw-r--r-- | js/galleryfileaction.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/galleryfileaction.js b/js/galleryfileaction.js index 314d2e10..8b140961 100644 --- a/js/galleryfileaction.js +++ b/js/galleryfileaction.js @@ -88,7 +88,12 @@ requesttoken: oc_requesttoken }; imageUrl = galleryFileAction.buildGalleryUrl('preview', '/' + file.id, params); - downloadUrl = imageUrl + '&download'; + params = { + c: file.etag, + requesttoken: oc_requesttoken + }; + downloadUrl = + galleryFileAction.buildGalleryUrl('files/download', '/' + file.id, params); images.push({ name: file.name, |