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