I just tested this luket and I now see what is happening.
On my test I have a limit of 10 max images allowed .
I get the max images allowed message at 10 "You have reached your limit of allowed attachments."and it make me delete one to allow posting.
So I end up with 9 images

So that means the code is taking the setting in Max gallery images
and is using less than Max gallery images statement instead of using greater than to prevent posting.

Also if so the language key should be edited to exceeded not reached and to delete files.

Last edited by Ruben; 06/25/2021 1:01 PM. Reason: Typo correction and added comment

Blue Man Group
There is no such thing as stupid questions. Just stupid answers