From 7f105bc4f5d2cf6632da3d3575e1d8e583067cc8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 26 Jul 2010 17:11:31 +0200 Subject: add function to get max upload size Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'system') diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index c20fb10db..2b2ffce6a 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -56,6 +56,11 @@ class File extends Controller { $this->load->view('file/footer', $data); } + function get_max_size() + { + echo $this->config->item('upload_max_size'); + } + function delete() { $id = $this->uri->segment(3); -- cgit v1.2.3-24-g4f1b