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
 
Back
Top Bottom