From: Robin Appelman Date: Sat, 24 Sep 2011 23:20:43 +0000 (+0200) Subject: fix uploading files using webdav X-Git-Tag: v3.0~148 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57bffdb46a827b58d0762d6955e3809ec4ed25e5;p=nextcloud-server.git fix uploading files using webdav --- diff --git a/lib/fileproxy/quota.php b/lib/fileproxy/quota.php index fe3a2333428..f770c9cb32b 100644 --- a/lib/fileproxy/quota.php +++ b/lib/fileproxy/quota.php @@ -45,7 +45,7 @@ class OC_FileProxy_Quota extends OC_FileProxy{ public function preFile_put_contents($path,$data){ if (is_resource($data)) { - $data = stream_get_contents($data); + $data = '';//TODO: find a way to get the length of the stream without emptying it } return (strlen($data)<$this->getFreeSpace() or $this->getFreeSpace()==0); }