Browse Source

fix uploading files using webdav

tags/v3.0
Robin Appelman 12 years ago
parent
commit
57bffdb46a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/fileproxy/quota.php

+ 1
- 1
lib/fileproxy/quota.php View File



public function preFile_put_contents($path,$data){ public function preFile_put_contents($path,$data){
if (is_resource($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); return (strlen($data)<$this->getFreeSpace() or $this->getFreeSpace()==0);
} }

Loading…
Cancel
Save