Make OC_Connector_Sabre_File::get() return a PHP stream instead of the file content, as is recommended by SabreDAV to handle large files.

remotes/origin/stable
Florian Vichot 14 years ago committed by Robin Appelman
parent 97291fda58
commit 452a463764
  1. 2
      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');
}

Loading…
Cancel
Save