]> source.dussan.org Git - nextcloud-server.git/commitdiff
Reuse known free space in the files app
authorRobin Appelman <icewind@owncloud.com>
Wed, 2 Apr 2014 14:53:45 +0000 (16:53 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 2 Apr 2014 14:53:45 +0000 (16:53 +0200)
apps/files/index.php

index 4d765b69e4126b67262cfefae868e6f7e753535c..cd9341d3b1dad014910311d4da17f80f23cfc899 100644 (file)
@@ -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;