lundi 13 février 2017

Laravel 5 doubts about image/file upload

I'm creating a small institutional website for my company, and there is going to be a Blog(can only post from backoffice, only for admins). I'm having trouble basically with the image upload. I need to store the image link in the database, but I don't know how to move the uploaded image to my resources folder.

This is my first time working with file upload in Laravel, and the documentation is kind of confusing with the Local Storage and Cloud Storage. I'm not really sure which one I need to use...

I only have this in my template:

<label for="image" class="col-md-4 control-label">Upload image</label>
<div class="col-md-6">
    <input id="image" type="file" name="image" required>
</div>

I have no idea how to process this in the controller..



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

Aucun commentaire:

Enregistrer un commentaire