diff options
| author | phecho <phecho@163.com> | 2016-12-13 18:21:02 +0800 |
|---|---|---|
| committer | phecho <phecho@163.com> | 2016-12-13 18:21:02 +0800 |
| commit | 2ed00b69a032018d15e1986e4cfe5c89f63206c9 (patch) | |
| tree | 5f02e3ed4988262aeb03634e120886dba9846e29 /app/Controller/ProjectFileController.php | |
| parent | f83178bef8084bfe57963b1820e73b4a9ab0bab5 (diff) | |
Verify file upload size
Diffstat (limited to 'app/Controller/ProjectFileController.php')
| -rw-r--r-- | app/Controller/ProjectFileController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/ProjectFileController.php b/app/Controller/ProjectFileController.php index cbe48679..9c38f684 100644 --- a/app/Controller/ProjectFileController.php +++ b/app/Controller/ProjectFileController.php @@ -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()), ))); } |
