From: Robin Appelman Date: Wed, 2 Apr 2014 14:53:45 +0000 (+0200) Subject: Reuse known free space in the files app X-Git-Tag: v7.0.0alpha2~510^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1e6a79e244e1bdb3b1d510201ff8146ae1cdce5c;p=nextcloud-server.git Reuse known free space in the files app --- diff --git a/apps/files/index.php b/apps/files/index.php index 4d765b69e41..cd9341d3b1d 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -97,7 +97,7 @@ $permissions = $dirInfo->getPermissions(); $storageInfo=OC_Helper::getStorageInfo($dir); $freeSpace=$storageInfo['free']; $uploadLimit=OCP\Util::uploadLimit(); -$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir); +$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir, $freeSpace); $publicUploadEnabled = $config->getAppValue('core', 'shareapi_allow_public_upload', 'yes'); // if the encryption app is disabled, than everything is fine (INIT_SUCCESSFUL status code) $encryptionInitStatus = 2;