-
Notifications
You must be signed in to change notification settings - Fork 63
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
Comments
관리자의 경우, xe의 설정과 관련없이 php설정에서 지정한 파일크기로 업로드 가능합니다. |
관리자는 둘째치고 게시글 당 업로드할 수 있는 용량이 제한됩니다. 파일 당 업로드 제한이 php설정상으로 1024M이라면, 그 제한이 파일 첨부는 물론 게시글 첨부 제한까지 적용됩니다. |
@LI-NA .. 관리자의 경우에만 그렇게 되네요..
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 } 내부 협의후 처리 하도록 하겠습니다. |
@LI-NA 참고로 관리자는 문서 첨부 제한 크기에 관계없이 무제한 파일 첨부 가능합니다. |
파일 최고 사이즈가 1024M일 경우, 문서 첨부 제한이 1024M로 되는 현상입니다.
문서 첨부 제한이 php 설정의 upload_max_filesize 랑 관계가 있다고 생각되지 않습니다.
The text was updated successfully, but these errors were encountered: