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

@@ -21,7 +21,7 @@ class ProjectFileController extends BaseController
$this->response->html($this->template->render('project_file/create', array(
'project' => $project,
'max_size' => $this->helper->text->phpToBytes(ini_get('upload_max_filesize')),
'max_size' => $this->helper->text->phpToBytes(get_upload_max_size()),
)));
}