From: Bjoern Schiessle Date: Tue, 10 Jul 2012 14:41:20 +0000 (+0200) Subject: use readfile() instead iof fopen() for file download over webdav. X-Git-Tag: v4.5.0beta1~74^2~372^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e7a0c4f0bb73cb6540678e8174c448fdaf5c299d;p=nextcloud-server.git use readfile() instead iof fopen() for file download over webdav. fopen() didn't work for large files on some servers while readfile() seems to work for all files on all configurations. --- diff --git a/lib/connector/sabre/file.php b/lib/connector/sabre/file.php index dd25df78c29..e4dc8c93445 100644 --- a/lib/connector/sabre/file.php +++ b/lib/connector/sabre/file.php @@ -42,7 +42,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D */ public function get() { - return OC_Filesystem::fopen($this->path,'r'); + return OC_Filesystem::readfile($this->path); }