Getting the correct mimetypes when uploading files

Posted 1 year ago by mdecooman

uploading file get the wrong mimetypes.

Coreldraw files cdr are recognised as application/zip
Illustrator ai is recognised as pdf

so basically I need to put in my validation rules:

//application/postscript is useless in this case

'file' => 'required|file|mimetypes:application/zip,application/pdf

Anyone could point me to the right direction?


Please sign in or create an account to participate in this conversation.