Support the ongoing development of Laravel.io →
Input Forms Validation
Last updated 1 year ago.
0

Before the validator try dumping out the guessed extension, make sure it equals to xls.

dd($file->guessExtension());
Last updated 1 year ago.
0

jasonlewis said:

Before the validator try dumping out the guessed extension, make sure it equals to xls.

dd($file->guessExtension());

it always return to NULL.. how come? did I miss some configuration ?

Last updated 1 year ago.
0

No, I'd say it's just unable to guess the files extension. I'm not really sure why. You'll need to extract the extension yourself and make sure it's equal to .xls instead of using the validator. Unless I'm missing something. Sorry I can't help much further.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

r3k4 r3k4 Joined 6 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.