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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.