Yes, good point. I have checked those and made them the same, but still getting the issue (any file attachment, any size).
I have narrowed the issue down to this code in ./program/steps/mail/attachments.inc:
else { // upload failed
if ($err == UPLOAD_ERR_INI_SIZE || $err == UPLOAD_ERR_FORM_SIZE) {
$size = $RCMAIL->show_bytes(rcube_utils::max_upload_size());
$msg = $RCMAIL->gettext(array('name' => 'filesizeerror', 'vars' => array('size' => $size)));
}
else if ($attachment['error']) {
$msg = $attachment['error'];
}
else {
$msg = $RCMAIL->gettext('fileuploaderror');
}
if ($attachment['error'] || $err != UPLOAD_ERR_NO_FILE) {
$OUTPUT->command('display_message', $msg, 'error'); <---THIS LINE IS GENERATING THE ERROR MSG ON SCREEN
$OUTPUT->command('remove_from_attachment_list', $uploadid);
}
I have put some debug in and $err is coming back as "0". Unfortunately I've got extremely limited PHP experience so if anyone can suggest some additional debug to add to this section to actually work out what the issue is I'd be grateful.
Thanks!