Verify file upload size

This commit is contained in:
phecho
2016-12-13 18:21:02 +08:00
parent f83178bef8
commit 2ed00b69a0
5 changed files with 14 additions and 4 deletions

View File

@@ -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()),
)));
}