Cannot upload more than 5MB

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
quargo
Posts: 5
Joined: 23 Jun 2021, 12:18

Cannot upload more than 5MB

Post by quargo »

This appears to be covered several times and on several other help sites.
But none of the solutions work

The file I want to post is a 13MB zip file.

I have tried various combinations of:

my.ini for sql
max_allowed_packet=32M

php.ini
max_execution_time = 300
max_input_time = 300
memory_limit = 128M
post_max_size = 28M
upload_max_filesize = 28M

adding to
config_inc.php
#$g_allow_file_upload = ON;
#$g_file_upload_method = DISK;
#$g_max_file_size = 28 * 1024 * 1024;
#$g_max_file_size = 28M;
#$g_upload_project_file_threshold = REPORTER;
#$g_upload_bug_file_threshold = REPORTER;

Most of which appear to 'freeze the server' - from point of trying to access any ticket from server/web browser.
espacially
#$g_max_file_size = 28M;
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot upload more than 5MB

Post by atrol »

None of the lines in config_inc.php is affecting the functionality as they are commented out.
You have to remove the starting # from the lines you want to activate.
Please use Search before posting and read the Manual
quargo
Posts: 5
Joined: 23 Jun 2021, 12:18

Re: Cannot upload more than 5MB

Post by quargo »

Thanks,
Yes I know they are commented out.
When I add them it freezes.
As stated :)
I added them to stop people telling me to try them
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot upload more than 5MB

Post by atrol »

From https://mantisbt.org/bugs/view.php?id=28834#c65655
I doubt we can easily upgrade anything here :)

PHP Version 5.6.25
Apache 20120211
Mantis appears to be 1.3.1-1
Windows server 2012 R2

Mantis code not modified.

Index.php
shows 2 issues
FAIL
MySQL version is within the Extended Support period (GA + 8 years)
Support for the release of MySQL you are using (5.6.32) ended on 2021-02-05. It should not be used, as security flaws discovered in this version will not be fixed.

WARN

Version of MySQL being used is within the Premier Support period (GA + 5 years)
Premier Support for the release of MySQL you are using (5.6.32) ended on 2018-02-05. The release is in its Extended support period, which ends on 2021-02-05. You should upgrade to a newer version of MySQL which is still within its Premier support period to benefit from bug fixes and security patches.


Comment out the following lines
https://github.com/mantisbt/mantisbt/bl ... #L121-L124
After that, run again admin/check/index.php

At the moment the checks are stopping after your database checks, so the following checks including those ones for the attachments will not run.
Please use Search before posting and read the Manual
quargo
Posts: 5
Joined: 23 Jun 2021, 12:18

Re: Cannot upload more than 5MB

Post by quargo »

Thanks

Tried cutting line 121/124 in index.php
When run:
The fails in the Database section disappear - no errors in either section (fails attached as png now)

Any ideas will be welcome.


I think I have the file size and related settings set everywhere suggested on forums.
To be sure, this is a real nuisance to me.

Q.
Attachments
index_fails.PNG
index_fails.PNG (33.18 KiB) Viewed 2511 times
quargo
Posts: 5
Joined: 23 Jun 2021, 12:18

Re: Cannot upload more than 5MB

Post by quargo »

This is still a problem.

Any more ideas?
quargo
Posts: 5
Joined: 23 Jun 2021, 12:18

Re: Cannot upload more than 5MB

Post by quargo »

Should mention...

If I add

$g_max_file_size = 28M;
to
...\mantis-1.3.1-1\apps\mantis\htdocs\config\config_inc.php

then the Mantis server / web interface at least hangs.
Post Reply