Merge pull request #22906 from owncloud/stable9-quota-allowuploadwhenfreespaceisunlimited
[stable9] Fix uploading to fed shares where free space is unlimited
This commit is contained in:
commit
6bfeb4595d
|
@ -138,7 +138,7 @@ $maxHumanFileSize = OCP\Util::humanFileSize($maxUploadFileSize);
|
|||
$totalSize = 0;
|
||||
$isReceivedShare = \OC::$server->getRequest()->getParam('isReceivedShare', false) === 'true';
|
||||
// defer quota check for received shares
|
||||
if (!$isReceivedShare) {
|
||||
if (!$isReceivedShare && $storageStats['freeSpace'] >= 0) {
|
||||
foreach ($files['size'] as $size) {
|
||||
$totalSize += $size;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue