From 7a8732b78d433b3a148a103491c8a93cceb16da5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 26 Jul 2010 17:30:37 +0200 Subject: display maximum upload size on upload form Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 1 + system/application/views/file/upload_form.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'system/application') diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index 601cf80e1..e2d30c069 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -50,6 +50,7 @@ class File extends Controller { $data = array(); $data['title'] = 'Upload'; $data['small_upload_size'] = $this->config->item('small_upload_size'); + $data['max_upload_size'] = $this->config->item('upload_max_size'); $this->load->view('file/header', $data); $this->load->view('file/upload_form', $data); diff --git a/system/application/views/file/upload_form.php b/system/application/views/file/upload_form.php index 300fa7558..b906dcd0f 100644 --- a/system/application/views/file/upload_form.php +++ b/system/application/views/file/upload_form.php @@ -14,7 +14,7 @@

Uploads/pastes are deleted after 5 days 0): ?> unless they are smaller than -.

+ . Maximum upload size is


For shell uploading/pasting use:

-- 
cgit v1.2.3-24-g4f1b