excel file upload validation mime type error.

Posted 2 years ago by umefarooq

Hi i am trying to upload excel file i am also validating excel file but facing problem with excel file mime type validation here is code i am using for file

'file' => 'required|mimes:xls,xlsx'

i don't know how laravel is checking mime, where i can set missing mimes for excel files in laravel.

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

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.