summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorPellaeon Lin <nfsmwlin@gmail.com>2013-12-08 23:17:35 +0800
committerPellaeon Lin <nfsmwlin@gmail.com>2013-12-08 23:17:35 +0800
commit64bf0fa47fe4c623672cf86e831f66974e7f650c (patch)
treeabbaaaa9ddf3f1d157be0d543ec65672b03c9cc5 /apps/files/index.php
parentfc607e6bce76e9e2f6f52421bdddece951f629cd (diff)
downloadnextcloud-server-64bf0fa47fe4c623672cf86e831f66974e7f650c.tar.gz
nextcloud-server-64bf0fa47fe4c623672cf86e831f66974e7f650c.zip
Display different messages for uploadLimit and freeSpace
Diffstat (limited to 'apps/files/index.php')
-rw-r--r--apps/files/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index 8f6838aa0d9..4ea0f9f2496 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -103,6 +103,8 @@ if ($needUpgrade) {
} else {
// information about storage capacities
$storageInfo=OC_Helper::getStorageInfo($dir);
+ $freeSpace=OCP\Util::freeSpace($dir);
+ $uploadLimit=OCP\Util::uploadLimit();
$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir);
$publicUploadEnabled = \OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes');
// if the encryption app is disabled, than everything is fine (INIT_SUCCESSFUL status code)
@@ -136,6 +138,8 @@ if ($needUpgrade) {
$tmpl->assign('trashEmpty', $trashEmpty);
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
+ $tmpl->assign('freeSpace', $freeSpace);
+ $tmpl->assign('uploadLimit', $uploadLimit);
$tmpl->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
$tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']);
$tmpl->assign('isPublic', false);