summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-10-24 20:29:00 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-24 20:29:00 +0200
commit0fb070b5b4ea19a7319dd3753eb13a285dc89f90 (patch)
tree61798a7a04fd428d773d99c416b010eb83b60f02 /lib
parent410bd9d784fdd3f365cd1755f46265fbb28fbc15 (diff)
downloadnextcloud-server-0fb070b5b4ea19a7319dd3753eb13a285dc89f90.tar.gz
nextcloud-server-0fb070b5b4ea19a7319dd3753eb13a285dc89f90.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/Wrapper/Quota.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Quota.php b/lib/private/Files/Storage/Wrapper/Quota.php
index 860fce57277..4cbe9189593 100644
--- a/lib/private/Files/Storage/Wrapper/Quota.php
+++ b/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);