From a14f8243e8b137fb57fa6071de7d1ebe7268866c Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Sun, 17 Apr 2011 12:03:23 +0200 Subject: [PATCH] get max upload file size for upload form from php settings --- files/index.php | 1 + files/templates/index.php | 2 +- lib/helper.php | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/files/index.php b/files/index.php index 638f5d0c51e..e07e80aabb5 100644 --- a/files/index.php +++ b/files/index.php @@ -60,6 +60,7 @@ $tmpl = new OC_TEMPLATE( "files", "index", "user" ); $tmpl->assign( "files", $files ); $tmpl->assign( "breadcrumb", $breadcrumb ); $tmpl->assign( 'dir', $dir); +$tmpl->assign( 'uploadMaxFilesize', OC_HELPER::computerFileSize(ini_get('upload_max_filesize'))); $tmpl->printPage(); ?> diff --git a/files/templates/index.php b/files/templates/index.php index 49742a98136..40113c9fe0c 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -8,7 +8,7 @@ href="" title="" class="delete">Delete
" id="max_upload">" id="dir">