summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-02 16:53:45 +0200
committerRobin Appelman <icewind@owncloud.com>2014-04-02 16:53:45 +0200
commit1e6a79e244e1bdb3b1d510201ff8146ae1cdce5c (patch)
tree37a2fc9fe36cfb7445da569536ba6ec2ef7d6fde /apps
parent16d10844cd01dc89f864cda6bde5169812e89b62 (diff)
downloadnextcloud-server-1e6a79e244e1bdb3b1d510201ff8146ae1cdce5c.tar.gz
nextcloud-server-1e6a79e244e1bdb3b1d510201ff8146ae1cdce5c.zip
Reuse known free space in the files app
Diffstat (limited to 'apps')
-rw-r--r--apps/files/index.php2
1 files changed, 1 insertions, 1 deletions
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;