mime_in throws error when file is not passed |
I have this code:
PHP Code: $validationRules = [ which is working fine when I pass the attachment field, but since that field is optional, when I doesn't send it I get: The file attachment does not have an allowed mime type How can I manage this?
|
Welcome Guest, Not a member yet? Register Sign In |