MantisBT | 첨부파일 최대크기 늘리기

2023. 2. 17. 19:30·기타
반응형

mantisbt에서 이슈 등록할때 첨부파일을 함께 올릴 수 있는데 최대 크기는 기본 2048KiB로 설정돼있다. 

공식문서를 찾아보면  g_max_file_size를 변경하면 된다는 것을 알 수 있다.

 

config_inc.php

$g_max_file_size

Maximum file size that can be uploaded. Default value is about 5 MiB. The maximum size is also affected by the PHP options post_max_size (default 8 MiB), upload_max_filesize (default 2 MiB) and memory_limit (default 128 MiB) specified in php.ini.

 

 

일단 config_defaults_inc.php파일을 보면 기본값이 5MiB로 설정되어 있다.

config_inc.php파일에서 값을 원하는 값으로 설정해서 덮어씌워준다.

그래도 업로드 가능한 최대 파일 크기는 변하지 않는데 php.ini파일에서 공식문서에 언급된 두 변수를 바꿔주면 된다.

 

기본값이 5인데 업로드 가능 최대 크기가 2인 이유도 php.ini파일의 upload_max_filesize의 기본값이 2MiB로 설정되어 있기 때문이다.

 

 

php.ini

upload_max_filesize int

The maximum size of an uploaded file. post_max_size must be larger than this value.

 

post_max_size는 upload_max_filesize값보다 커야 한다고 한다.

두 값을 넉넉하게 바꿔준 후 서버를 다시 시작하고 mantisbt에 접속해보면

이렇게 첨부파일 최대 크기가 변경된 것을 볼 수 있다.

 

 

 

참고

https://brunch.co.kr/@leedongins/133

https://www.mantisbt.org/docs/master/en-US/Admin_Guide/html/admin.config.uploads.html

https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize

반응형
저작자표시 비영리 변경금지

'기타' 카테고리의 다른 글

[AWS] Elastic Beanstalk 에러: The following resource(s) failed to create: [AWSEBAutoScalingLaunchConfiguration].  (1) 2024.10.22
MySQL Workbench | ERROR: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ENGINE = InnoDB' at line 11  (0) 2023.03.08
리눅스 scp 명령어로 아마존 리모트 서버에 파일 복사하기  (0) 2023.02.16
MantisBT | 프로젝트 생성 권한 변경하기  (0) 2023.01.11
데이터베이스 | 인덱스란?  (0) 2022.11.10
'기타' 카테고리의 다른 글
  • [AWS] Elastic Beanstalk 에러: The following resource(s) failed to create: [AWSEBAutoScalingLaunchConfiguration].
  • MySQL Workbench | ERROR: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ENGINE = InnoDB' at line 11
  • 리눅스 scp 명령어로 아마존 리모트 서버에 파일 복사하기
  • MantisBT | 프로젝트 생성 권한 변경하기
이라후
이라후
  • 이라후
    화이팅
    이라후
  • 전체
    오늘
    어제
    • 분류 전체보기 (133)
      • TIL (23)
      • 기타 (26)
      • Python (14)
      • Django (10)
      • JavaScript (8)
      • git & GitHub (8)
      • Web (10)
      • Go (3)
      • wecode (31)
  • 반응형
  • 인기 글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
이라후
MantisBT | 첨부파일 최대크기 늘리기
상단으로

티스토리툴바