summaryrefslogtreecommitdiffstats
path: root/system/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-07-26 17:11:31 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-07-26 17:11:31 +0200
commit7f105bc4f5d2cf6632da3d3575e1d8e583067cc8 (patch)
treebc1c19812ebc384f0a8a91ce910dab15b864a24b /system/application/controllers
parentb07875f49909b2292e3b980f2e262dcfa49b8603 (diff)
add function to get max upload size
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/controllers')
-rw-r--r--system/application/controllers/file.php5
1 files changed, 5 insertions, 0 deletions
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);