From 2ed00b69a032018d15e1986e4cfe5c89f63206c9 Mon Sep 17 00:00:00 2001 From: phecho Date: Tue, 13 Dec 2016 18:21:02 +0800 Subject: Verify file upload size --- app/Controller/TaskFileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller/TaskFileController.php') 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()), ))); } -- cgit v1.2.3