summaryrefslogtreecommitdiffstats
path: root/lib/fileproxy/quota.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fileproxy/quota.php')
-rw-r--r--lib/fileproxy/quota.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/fileproxy/quota.php b/lib/fileproxy/quota.php
index af8ddee1473..fe3a2333428 100644
--- a/lib/fileproxy/quota.php
+++ b/lib/fileproxy/quota.php
@@ -44,6 +44,9 @@ class OC_FileProxy_Quota extends OC_FileProxy{
}
public function preFile_put_contents($path,$data){
+ if (is_resource($data)) {
+ $data = stream_get_contents($data);
+ }
return (strlen($data)<$this->getFreeSpace() or $this->getFreeSpace()==0);
}