summaryrefslogtreecommitdiffstats
path: root/lib/connector/sabre/file.php
diff options
context:
space:
mode:
authorFlorian Vichot <florian.vichot@gmail.com>2011-11-06 16:43:00 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-11-06 22:39:24 +0100
commit452a4637647d6dbd54b275aead765d3a2329813e (patch)
tree3db4a2eb8c7c64330fbc99027a87850375d994cc /lib/connector/sabre/file.php
parent97291fda5829fd56a22e39b6a62681aaa239bef5 (diff)
downloadnextcloud-server-452a4637647d6dbd54b275aead765d3a2329813e.tar.gz
nextcloud-server-452a4637647d6dbd54b275aead765d3a2329813e.zip
Make OC_Connector_Sabre_File::get() return a PHP stream instead of the file content, as is recommended by SabreDAV to handle large files.
Diffstat (limited to 'lib/connector/sabre/file.php')
-rw-r--r--lib/connector/sabre/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connector/sabre/file.php b/lib/connector/sabre/file.php
index b049f39c171..98661dbb184 100644
--- a/lib/connector/sabre/file.php
+++ b/lib/connector/sabre/file.php
@@ -29,7 +29,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
*/
public function get() {
- return OC_Filesystem::file_get_contents($this->path);
+ return OC_Filesystem::fopen($this->path,'r');
}