Use Input::hasFile('file')
to first ensure you do have a file uploaded before you try and do anything with it.
The root of your problem though is likely because your form is not allowing form uploads, add 'files' => true
to your {{ Form::open() }}
call.
{{ Form::open(array('url' => 'nuovo_post', 'method' => 'POST', 'id' => 'nuovo_post', 'files' => true)) }}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community