MG 2.2 Attachment limit

Seeker-Smith

Well-known member
Is there a setting to change how many attachments you can add at a time? I set the per message to 200 but I get an error at 100.
 
It's hard coded to 100 but I can't immediately recall why other than there's a fairly high chance that you'll run into potential server limits if it's higher. You'll potentially hit things like post_max_size, max_input_vars limits in PHP, you may exceed max_execution_time or experience issues with memory or CPU.

If this is just temporary, you can try manually increasing it by modifying the following files:

  • src/addons/XFMG/Entity/Album.php
  • src/addons/XFMG/Entity/Category.php

And finding:

PHP:
'count' => 100

And replacing with:

PHP:
'count' => 200
 
Hi,

I'm having issues with this again. The upload limit count seems to have reverted to 50. I have changed the the count to 200 as per the instruction.

Has a new limit been coded or a setting added for how many attachments can be uploaded in XFMG?
 
Okay so you can set 100 images to a post but only upload 50. Is this a bug? On previous versions to coiuld edit the pages and set whatever was required based on your server resources.
 
Top Bottom