Just encounted an error when I try to upload a file. I want to increase the file size to for uploads to attach to issues. This works fine up to the supported amount of about 5meg. I tried to edit the php.ini to increase the file size. Also changed the settings in the mantis config defaults from 5000 to 10000. File uplaods work, but still only up to the original size. When I try to upload a larger file size, upon completion it goes to bug_report.php server error.
Upload File Size
Moderators: Developer, Contributor
-
boastingjay
- Posts: 2
- Joined: 05 Apr 2012, 21:38
Upload File Size
Hello,
Just encounted an error when I try to upload a file. I want to increase the file size to for uploads to attach to issues. This works fine up to the supported amount of about 5meg. I tried to edit the php.ini to increase the file size. Also changed the settings in the mantis config defaults from 5000 to 10000. File uplaods work, but still only up to the original size. When I try to upload a larger file size, upon completion it goes to bug_report.php server error.
Any ideas?
Just encounted an error when I try to upload a file. I want to increase the file size to for uploads to attach to issues. This works fine up to the supported amount of about 5meg. I tried to edit the php.ini to increase the file size. Also changed the settings in the mantis config defaults from 5000 to 10000. File uplaods work, but still only up to the original size. When I try to upload a larger file size, upon completion it goes to bug_report.php server error.
-
boastingjay
- Posts: 2
- Joined: 05 Apr 2012, 21:38
Re: Upload File Size
I was able to fix this by changing the $g_file_upload_method from DATABASE to DISK. It seems my database settings were limiting the upload file size. I tried FTP as well, but I kept getting the error message that I was unable to connect to FTP even after making the changes in the default config file. I thought I read disk was the same as FTP, so that worked for me. 
Re: Upload File Size
For other users with similar problems:
If you want to use database with large attachments you have to increase parameter max_allowed_packet of MySQL.
If you want to use database with large attachments you have to increase parameter max_allowed_packet of MySQL.