jeudi 8 juin 2017

Laravel display image from path which is in database

So use is uploading a logo and it's path is stored in a database like this:

C:\xampp\htdocs\laravel\public\logo\1496912432.jpg

I am displaying the image like this:

<img class="images" id="image" src="" />

However I get this error:

Not allowed to load local resource: file:///C:/xampp/htdocs/laravel/public/logo/1496912432.jpg

How can this problem be solved?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire