diff options
Diffstat (limited to 'lib/public/files/storage.php')
-rw-r--r-- | lib/public/files/storage.php | 10 |
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); } |