View Issue Details

IDProjectCategoryView StatusLast Update
0028834mantisbtfeaturepublic2021-07-06 14:52
Reporterquargo Assigned Toatrol  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Summary0028834: Cannot upload files over about 5Mb
Description

If I try to upload a file over about 5 MB
then it gets rejected- not allowed in php

"File upload failed. This is likely because the filesize was larger than is currently allowed by this PHP installation."

I have been through the config files for both mantis and mantis sql configs
And set everything to 28Mb

Also scoured the helpsites including mantis versions and cannot find anything to indicate I have something wrong.

Set values in
php.ini
my.ini
config_??.ini

As described on the forums

upload

Steps To Reproduce

just try it on my system

Additional Information

This is a real problem.

TagsNo tags attached.
Attached Files
image.png (1,010 bytes)   
image.png (1,010 bytes)   

Activities

atrol

atrol

2021-06-23 10:14

developer   ~0065650

I guess you did not set $g_max_file_size https://mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.config.uploads

Run also admin/check/index.php to find some more attachment related settings that are wrong.

quargo,

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).

quargo

quargo

2021-06-23 10:38

reporter   ~0065651

\I found this data and it was of no use.
Do not resolve without first talking

quargo

quargo

2021-06-23 10:39

reporter   ~0065652

Last edited: 2021-06-23 11:23

$g_max_file_size this was set.

$g_max_file_size = 28M;
This causes the mantis to "hang when you try to access a ticket

atrol

atrol

2021-06-23 11:28

developer   ~0065653

@qargo feel free to reopen the issue is you think it's a bug, but not a configuration issue.

Before that, ensure that you are running the latest stable version (2.25.2 at the moment) and you have fixed errors and warnings you might get when runnig admin/check/index.php.

The following additional information may also be useful:

  • Exact version of MantisBT (in case you did not upgrade to latest version), PHP, Database, Web server, Browser and Operating System
  • Relevant customizations (e.g. changes in config_inc.php, etc)
  • Installed plugins or custom functions ?
  • Was the MantisBT source code modified in any way ?
atrol

atrol

2021-06-23 11:42

developer   ~0065654

Last edited: 2021-06-23 11:43

To follow up also in forum

quargo

quargo

2021-06-23 11:52

reporter   ~0065655

Will jump to forum.

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.

image-2.png (33,003 bytes)   
image-2.png (33,003 bytes)