Skip to content
Snippets Groups Projects
Commit 452a4637 authored by Florian Vichot's avatar Florian Vichot Committed by Robin Appelman
Browse files

Make OC_Connector_Sabre_File::get() return a PHP stream instead of the file...

Make OC_Connector_Sabre_File::get() return a PHP stream instead of the file content, as is recommended by SabreDAV to handle large files.
parent 97291fda
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment