XF 2.2 Strange upload attachments issue, keeps saying max uploads reached!

zoldos

Well-known member
My PHP 8.2.26 is set to allow up to 50 attachment uploads in the gallery at once. This has worked fine for literally years. I confirmed this setting, and have max input vars, execution time, and related settings all cranked up.

But now, I uploaded a set of 50, then it started saying "max file uploads reached". But here's where it gets weird. The amount I could still upload each try got less and less. It let me upload 13 pictures, then 12, then lower and lower, 3, then 2, then 1, and now none. It just has a line through the filename and says "Max uploads reached" (to paraphrase). I get the same thing when attaching images to the forum itself.

It does it on Chrome and Edge. Both latest versions.

I didn't see any server errors reported in XF Admin. I thought maybe it was a sessions issue, and restarted my browser. That didn't fix it. I also added some related PHP directives to my Plesk Obsidian, restarted Apache, etc. Still nothing. I also cleared my /tmp/ folder on my server, again, nothing.

I'm out of ideas. Any help would be most appreciated! :)

Update: It only seems to be affecting ME and my PC/browser!!
 
Last edited:
can you make copy & paste Values of Server environment report from admin panel
PHP memory_limit
PHP post_max_size
PHP upload_max_filesize
PHP max_input_vars
PHP max_execution_time
 
Sure:

Code:
PHP memory_limit:  256M
PHP post_max_size: 128M
PHP upload_max_filesize: 128M
PHP max_input_vars: 3000
PHP max_execution_time: 1000
 
simply the whole size of files exceeds your allowed.
upload 50 files each 1MB & check
I'm not sure I follow. It was working earlier today, then suddenly started messing up when I tried to upload a set of pictures that were mostly 2.5 - 3MB each. About 40 of them. Only two worked, which were 1.5MB each. Then it started messing up, and allowing fewer and fewer attachments in XFMG and on the forum. And now it seems it's ONLY me and my browser that is affected!!
 
Update: I setup a quick test forum with the same PHP version and settings, and the uploads work as usual.

But on my main site, I'm still getting the error not only on Edge, but on Chrome, and Firefox. :( :(

And like I said, other members report no issues!
 
Maybe related to this?
So it resets every 24 hours? I set this in config.php: $config['unassociatedAttachmentLimit'] = 1000; and it didn't fix it. Should I just wait? I tried to upload a bunch of hi-rez pictures and started getting the error, and I kept trying to upload them over and over again. lol
 
I didn't.... The error simply appeared as I was uploading a large batch of image files (2.5MB each) yesterday to the XFMG. Now I can't upload any attachment.
 
Maybe related to this?
Set this to something bigger like 5000 and wait for a few minutes for the opcache to reload and try uploading again.
 
Back
Top Bottom