Support the ongoing development of Laravel.io →
Forms Validation
Last updated 2 years ago.
0

I've not used Fomer, so I can't say exactly, but the source could be that the ID and NAME attributes of the generated form are file[] and not file.

This would explain why Input::has('file') would return true, but Input::hasFile('file') does not. If I'm correct, then Input::hasFile('file[]') would return true.

Last updated 2 years ago.
0

If anyone else have the same problem: The solution was that i didnt open the form with the files option. With former u have to open the form with

Former::open_for_files()

Full solution on stackoverflow: http://stackoverflow.com/questions/24761478/laravel-multiple-file-upload-inputhasfilekey-always-false

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

wPatrick wpatrick Joined 15 Jul 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.