Allow chunked uploads even if your quota is not sufficient

Fixes #11485

This allows uploads to shared folders.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/12022/head
Roeland Jago Douma 8 years ago
parent 410bd9d784
commit 0fb070b5b4
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 2
      lib/private/Files/Storage/Wrapper/Quota.php

@ -83,7 +83,7 @@ class Quota extends Wrapper {
* @return int
*/
public function free_space($path) {
if ($this->quota < 0 || strpos($path, 'cache') === 0) {
if ($this->quota < 0 || strpos($path, 'cache') === 0 || strpos($path, 'uploads') === 0) {
return $this->storage->free_space($path);
} else {
$used = $this->getSize($this->sizeRoot);

Loading…
Cancel
Save