vendredi 4 août 2017

laravel 5.4 store method is not getting the file input

I want to add image at the time of registration in laravel 5.4

But my store method is not getting the file. But when I do

dd($data);

it shows me every input including input file name. But when I try this

dd(Input::file('image'));

it shows me NULL

Here is my image input field.

<form class="form-horizontal" method="POST" action="" files="true"> <input type="file" name="image"> </form>

Anyone Please help me. TIA



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2uaTOsW
via IFTTT

Aucun commentaire:

Enregistrer un commentaire