else { $attachtype = $attachtypes[$ext];
} // check the length of the filename $maxFileNameLength = 255; if(my_strlen($attachment['name']) > $maxFileNameLength) { $ret['error'] = $lang->sprintf($lang->error_attach_filename_length, htmlspecialchars_uni($attachment['name']), $maxFileNameLength); return $ret;
} // Check the size