Can't increase max file upload size

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
rajay
Posts: 4
Joined: 24 Sep 2020, 12:17

Can't increase max file upload size

Post by rajay »

New user here. I know this is a bit of a FAQ as I did a search but I'm completely stumped why I can't increase te filesize beyond 5meg. I want to increase to 10meg.

PHP has post_max_size = 100M and upload_max_filesize = 100M. I have verified this by running phpinfo() on the domain where I installed Mantis.

My.cnf has max_allowed_packet of 268M.

Mantis' config_inc.php in /config has:
# --- Attachments / File Uploads ---
# $g_allow_file_upload = ON;
# $g_file_upload_method = DISK; # or DISK
# $g_absolute_path_default_upload_folder = ''; # used with DISK, must contain trailing \ or /.
# $g_max_file_size = 100000000;; # in bytes
# $g_preview_attachments_inline_max_size = 256 * 1024;
# $g_allowed_files = ''; # extensions comma separated, e.g. 'php,html,java,exe,pl'
# $g_disallowed_files = ''; # extensions comma separated


What am I missing ? Attachments are being uploaded and are viewable: it's just the size limit I have an issue with.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Can't increase max file upload size

Post by atrol »

rajay wrote: 24 Sep 2020, 12:24 # $g_max_file_size = 100000000;; # in bytes
This can't work, as the line is commented out.
To make it active, remove the "#" character at the beginning of the line.
Please use Search before posting and read the Manual
rajay
Posts: 4
Joined: 24 Sep 2020, 12:17

Re: Can't increase max file upload size

Post by rajay »

Doh!

Thankyou.
Post Reply