summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-07-26 17:30:37 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-07-26 17:30:37 +0200
commit7a8732b78d433b3a148a103491c8a93cceb16da5 (patch)
tree44d5718bdc4e43c7a6b2b0f8958fece3cca981b2 /system
parente71789886fd593142088b38ebca544dbaa05bd43 (diff)
display maximum upload size on upload form
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system')
-rw-r--r--system/application/controllers/file.php1
-rw-r--r--system/application/views/file/upload_form.php2
2 files changed, 2 insertions, 1 deletions
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 @@
<br /><br />
<p>Uploads/pastes are deleted after 5 days<?php if($small_upload_size > 0): ?>
unless they are smaller than <?php echo format_bytes($small_upload_size); ?>
-<?php endif; ?>.</p>
+ <?php endif; ?>. Maximum upload size is <?php echo format_bytes($max_upload_size); ?></p>
<br />
<p>For shell uploading/pasting use:</p>
<pre>