summaryrefslogtreecommitdiffstats
path: root/lib/fileproxy
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-09-25 01:20:43 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-09-25 01:20:43 +0200
commit57bffdb46a827b58d0762d6955e3809ec4ed25e5 (patch)
tree0c0ed4c204c016deebf115ed05946ecd696f4f85 /lib/fileproxy
parentc16a9a83ba4410d969f60772c29ac48ee2116c01 (diff)
downloadnextcloud-server-57bffdb46a827b58d0762d6955e3809ec4ed25e5.tar.gz
nextcloud-server-57bffdb46a827b58d0762d6955e3809ec4ed25e5.zip
fix uploading files using webdav
Diffstat (limited to 'lib/fileproxy')
-rw-r--r--lib/fileproxy/quota.php2
1 files changed, 1 insertions, 1 deletions
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);
}