diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-04-17 18:14:26 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-04-17 18:14:26 +0200 |
commit | ec7e33870441f81f10385ca0329e7a91fcf3ae45 (patch) | |
tree | 4faa4abe4c22f18bcd114281860563c15266d063 /files/index.php | |
parent | d59b0df401c76e7434fda889af81f47adb5bd656 (diff) | |
download | nextcloud-server-ec7e33870441f81f10385ca0329e7a91fcf3ae45.tar.gz nextcloud-server-ec7e33870441f81f10385ca0329e7a91fcf3ae45.zip |
display max file size for upload
Diffstat (limited to 'files/index.php')
-rw-r--r-- | files/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/files/index.php b/files/index.php index 28743f77fca..c0f078bd215 100644 --- a/files/index.php +++ b/files/index.php @@ -61,11 +61,14 @@ $list->assign( "files", $files ); $breadcrumbNav = new OC_TEMPLATE( "files", "part.breadcrumb", "" ); $breadcrumbNav->assign( "breadcrumb", $breadcrumb ); +$maxUploadFilesize = OC_HELPER::computerFileSize(ini_get('upload_max_filesize')); + $tmpl = new OC_TEMPLATE( "files", "index", "user" ); $tmpl->assign( "fileList", $list->fetchPage() ); $tmpl->assign( "breadcrumb", $breadcrumbNav->fetchPage() ); $tmpl->assign( 'dir', $dir); -$tmpl->assign( 'uploadMaxFilesize', OC_HELPER::computerFileSize(ini_get('upload_max_filesize'))); +$tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); +$tmpl->assign( 'uploadMaxHumanFilesize', OC_HELPER::humanFileSize($maxUploadFilesize)); $tmpl->printPage(); ?> |