Merge pull request #12040 from nextcloud/backport/12022/stable14
[14] Allow chunked uploads even if your quota is not sufficient
This commit is contained in:
commit
1ec92c0497
|
@ -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…
Reference in New Issue