Skip to content

Commit efee3b1

Browse files
authored
Merge pull request #12022 from nextcloud/fix/11485/fix_chuncked_uploads
Allow chunked uploads even if your quota is not sufficient
2 parents 410bd9d + 0fb070b commit efee3b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Storage/Wrapper/Quota.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function getSize($path, $storage = null) {
8383
* @return int
8484
*/
8585
public function free_space($path) {
86-
if ($this->quota < 0 || strpos($path, 'cache') === 0) {
86+
if ($this->quota < 0 || strpos($path, 'cache') === 0 || strpos($path, 'uploads') === 0) {
8787
return $this->storage->free_space($path);
8888
} else {
8989
$used = $this->getSize($this->sizeRoot);

0 commit comments

Comments
 (0)