summaryrefslogtreecommitdiffstats
path: root/lib/public/files
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-12-15 15:20:24 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-12-28 17:17:14 +0100
commit5b00bc1d6e36bb81aee02da612195a048e90a8b4 (patch)
tree8280f2b6c5b8f0f5f2b058886fd1a2db558f159f /lib/public/files
parent9f327457dc74f3e8fc4df17b0d44a99b86c22384 (diff)
downloadnextcloud-server-5b00bc1d6e36bb81aee02da612195a048e90a8b4.tar.gz
nextcloud-server-5b00bc1d6e36bb81aee02da612195a048e90a8b4.zip
Adding basement for the direct download url
Diffstat (limited to 'lib/public/files')
-rw-r--r--lib/public/files/storage.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/files/storage.php b/lib/public/files/storage.php
index 323d20db564..36d5b800df6 100644
--- a/lib/public/files/storage.php
+++ b/lib/public/files/storage.php
@@ -335,4 +335,14 @@ interface Storage {
* @return bool
*/
public function instanceOfStorage($class);
+
+ /**
+ * A custom storage implementation can return an url for direct download of a give file.
+ *
+ * For now the returned array can hold the parameter url - in future more attributes might follow.
+ *
+ * @param string $path
+ * @return array
+ */
+ public function getDirectDownload($path);
}