Upload File Size

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
boastingjay
Posts: 2
Joined: 05 Apr 2012, 21:38

Upload File Size

Post by boastingjay »

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?
boastingjay
Posts: 2
Joined: 05 Apr 2012, 21:38

Re: Upload File Size

Post by boastingjay »

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. :mrgreen:
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upload File Size

Post by atrol »

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.
Please use Search before posting and read the Manual
Post Reply