fix uploading files using webdav
This commit is contained in:
parent
c16a9a83ba
commit
57bffdb46a
|
@ -45,7 +45,7 @@ class OC_FileProxy_Quota extends OC_FileProxy{
|
||||||
|
|
||||||
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…
Reference in New Issue