mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
#17856472 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5894 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2fde39c2d9
commit
937fbcc743
3 changed files with 11 additions and 1 deletions
|
|
@ -290,8 +290,13 @@
|
|||
if($logged_info->is_admin != 'Y') {
|
||||
$oFileModel = &getModel('file');
|
||||
$config = $oFileModel->getFileConfig($module_srl);
|
||||
$allowed_filesize = $config->allowed_filesize * 1024 * 1024;
|
||||
$allowed_attach_size = $config->allowed_attach_size * 1024 * 1024;
|
||||
|
||||
// 한 파일당 허용 용량 초과시 오류 출력
|
||||
if($allowed_filesize > filesize($file_info['tmp_name'])) return new Object(-1, 'msg_exceeds_limit_size');
|
||||
|
||||
|
||||
// 해당 문서에 첨부된 모든 파일의 용량을 가져옴 (DB에서 가져옴)
|
||||
$size_args->upload_target_srl = $upload_target_srl;
|
||||
$output = executeQuery('file.getAttachedFileSize', $size_args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue