Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XE 게시판 파일 업로드시 사이즈 관련 오류 #486

Closed
LI-NA opened this issue Feb 15, 2014 · 4 comments
Closed

XE 게시판 파일 업로드시 사이즈 관련 오류 #486

LI-NA opened this issue Feb 15, 2014 · 4 comments
Assignees
Labels
Milestone

Comments

@LI-NA
Copy link
Contributor

LI-NA commented Feb 15, 2014

파일 최고 사이즈가 1024M일 경우, 문서 첨부 제한이 1024M로 되는 현상입니다.
문서 첨부 제한이 php 설정의 upload_max_filesize 랑 관계가 있다고 생각되지 않습니다.

@khongchi
Copy link
Contributor

관리자의 경우, xe의 설정과 관련없이 php설정에서 지정한 파일크기로 업로드 가능합니다.
무엇이 오류인지 정확하게 적어주세요.

@LI-NA
Copy link
Contributor Author

LI-NA commented Feb 18, 2014

@khongchi

관리자는 둘째치고 게시글 당 업로드할 수 있는 용량이 제한됩니다. 파일 당 업로드 제한이 php설정상으로 1024M이라면, 그 제한이 파일 첨부는 물론 게시글 첨부 제한까지 적용됩니다.

@akasima
Copy link
Member

akasima commented Feb 19, 2014

@LI-NA
파일이 따로따로업로드 되니 파일 하나의 제한은 1024M(upload_max_filesize) 로 제한 하더라도
하나의 문서에서 한번에 업로드 할 수 있는 총 파일의 양은 관리자 설정에 따라야 한다.. 라는 말씀이신것 같습니다.

.. 관리자의 경우에만 그렇게 되네요..

fileModel::upload_max_filesize()

 226     function getUploadConfig()
 227     {
 228         $logged_info = Context::get('logged_info');
 229         $file_config = new stdClass();
 230         if($logged_info->is_admin == 'Y')
 231         {
 232             $file_config->allowed_filesize = preg_replace("/[a-z]/is","",ini_get('upload_max_filesize'));
 233             $file_config->allowed_attach_size = preg_replace("/[a-z]/is","",ini_get('upload_max_filesize'));
 234             $file_config->allowed_filetypes = '*.*';
 235         }
 236         else
 237         {
 238             $module_srl = Context::get('module_srl');
 239             // Get the current module if module_srl doesn't exist
 240             if(!$module_srl)
 241             {
 242                 $current_module_info = Context::get('current_module_info');
 243                 $module_srl = $current_module_info->module_srl;
 244             }
 245             $file_config = $this->getFileConfig($module_srl);
 246         }
 247         return $file_config;
 248     }

내부 협의후 처리 하도록 하겠습니다.
코드수정되면 멘션으로 알려드리겠습니다.
이슈는 닫겠습니다.

@akasima
Copy link
Member

akasima commented Feb 20, 2014

@LI-NA
관련 문제에 대해서 처리 했습니다.

참고로 관리자는 문서 첨부 제한 크기에 관계없이 무제한 파일 첨부 가능합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants