summaryrefslogtreecommitdiff
path: root/app/Controller/TaskFileController.php
diff options
context:
space:
mode:
authorphecho <phecho@163.com>2016-12-13 18:21:02 +0800
committerphecho <phecho@163.com>2016-12-13 18:21:02 +0800
commit2ed00b69a032018d15e1986e4cfe5c89f63206c9 (patch)
tree5f02e3ed4988262aeb03634e120886dba9846e29 /app/Controller/TaskFileController.php
parentf83178bef8084bfe57963b1820e73b4a9ab0bab5 (diff)
Verify file upload size
Diffstat (limited to 'app/Controller/TaskFileController.php')
-rw-r--r--app/Controller/TaskFileController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/TaskFileController.php b/app/Controller/TaskFileController.php
index 77c0c026..8a0971e4 100644
--- a/app/Controller/TaskFileController.php
+++ b/app/Controller/TaskFileController.php
@@ -40,7 +40,7 @@ class TaskFileController extends BaseController
$this->response->html($this->template->render('task_file/create', array(
'task' => $task,
- 'max_size' => $this->helper->text->phpToBytes(ini_get('upload_max_filesize')),
+ 'max_size' => $this->helper->text->phpToBytes(get_upload_max_size()),
)));
}