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.
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community