Before the validator try dumping out the guessed extension, make sure it equals to xls
.
dd($file->guessExtension());
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 ?
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community