Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-08-19 02:52:12 +0300
committerOlivier Paroz <github@oparoz.com>2015-08-19 02:52:13 +0300
commit7d393650e7e231a68038ccb9fd069cd95746806b (patch)
tree1ff0b8eab9bc03c84d995269b00afd40d928e0d8 /js/galleryfileaction.js
parent8a002c4633c896c531d60d4042fe5276172bb157 (diff)
Add download API
Diffstat (limited to 'js/galleryfileaction.js')
-rw-r--r--js/galleryfileaction.js7
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,