summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-10-24 23:48:17 +0200
committerGitHub <noreply@github.com>2018-10-24 23:48:17 +0200
commitefee3b149dd295acd47aae6e6af6322658ab0184 (patch)
tree61798a7a04fd428d773d99c416b010eb83b60f02
parent410bd9d784fdd3f365cd1755f46265fbb28fbc15 (diff)
parent0fb070b5b4ea19a7319dd3753eb13a285dc89f90 (diff)
downloadnextcloud-server-efee3b149dd295acd47aae6e6af6322658ab0184.tar.gz
nextcloud-server-efee3b149dd295acd47aae6e6af6322658ab0184.zip
Merge pull request #12022 from nextcloud/fix/11485/fix_chuncked_uploads
Allow chunked uploads even if your quota is not sufficient
-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);