]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix uploading files using webdav
authorRobin Appelman <icewind1991@gmail.com>
Sat, 24 Sep 2011 23:20:43 +0000 (01:20 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Sat, 24 Sep 2011 23:20:43 +0000 (01:20 +0200)
lib/fileproxy/quota.php

index fe3a2333428978ca65d67293f6e24ef4bee45314..f770c9cb32b6596c21f5847dc72585e36b84851c 100644 (file)
@@ -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);
        }