GIF Attachments Larger Than 2 MB Are Refused

Arnox

Active member
All third-party add-ons have been disabled and the problem still persists. XFMG also shows the same problematic behavior. XF seems to happily take 10+ MB images, but once a >2 MB GIF is uploaded, "The uploaded file is too large for the server to process." Using PHP 8.3 by the way, and yes, I have set the PHP 8.x resource limits to be WAYYY above 2 MB or even 200 MB.

Also, this may be connected, and this doesn't happen with XFMG, but when I try to upload a ~10 MB picture to the forum, the editor will freeze with "Uploading... 100%". And with all of this, there are never any errors in the server log.
 
Last edited:
Fixed this. XF was apparently reading from the wrong PHP config file. (I have multiple ones.) What is weird though is that the config files were all properly separated. What I'm guessing is that XF just picks and reads from the very first one it sees?
 
If you mean php.ini then XF has no control over that at all, PHP invokes/runs XF and not the other way around.

The limits should be displayed on the control panel dashboard.
 
If you mean php.ini then XF has no control over that at all, PHP invokes/runs XF and not the other way around.

The limits should be displayed on the control panel dashboard.

Yep. And fair enough. I just don't quite understand though because XF shows that it was running on the right PHP version, but PHP was reading from a different version config file. shrugs I dunno.
 
Back
Top Bottom