ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 25,981
- Points
- 823
Reputation:
Very minor issue but the
just needs to be:
Then it accepts 2 and rejects a 3rd.
Continue reading...
unassociatedAttachmentLimit
config value actually accepts 1 less than the limit. Easier to test if you set $config['unassociatedAttachmentLimit'] = 2;
, you get the error after uploading 1 attachment instead of 2.src/XF/Attachment/Manipulator.php:140
:$allowed = ($uploaded < $unassociatedLimit);
just needs to be:
$allowed = ($uploaded <= $unassociatedLimit);
Then it accepts 2 and rejects a 3rd.
Continue reading...