B
B
BonBon Slick2016-11-29 16:51:33
HTML
BonBon Slick, 2016-11-29 16:51:33

Why doesn't img src="C:\Users....app\imgs/my_img.jpeg" see it?

Why doesn't it work like that?

<img src="C:\Users\BonBonS\Desktop\OpenServer\domains\lara53\storage\app\imgs/75b5992f60c81135ebca5d78d2a934da.jpeg" alt="" height="255px" width="255px">

The file exists, but it does not display.
This output doesn't work either:
<img src="{{Storage::url($product->avatar_url)}}" alt=""  height="255px" width="255px">
<img src="/storage/imgs/adef1248fbb4dd03412ab5466d46dd75.jpeg" alt="" height="255px" width="255px">

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2016-11-29
@BonBonSlick

Well, in Laravel, the public folder should be
C:\Users\BonBonS\Desktop\OpenServer\domains\lara53\public
and all the statics should be in it
url /storage/imgs/adef1248fbb4dd03412ab5466d46dd75.jpeg means that the file should be in
C: \Users\BonBonS\Desktop\OpenServer\domains\lara53\public/storage/imgs/adef1248fbb4dd03412ab5466d46dd75.jpeg and of course it's not there
not downloadable pictures.

O
Oleg, 2016-11-29
@politon

<img src="/storage/app/imgs/adef1248fbb4dd03412ab5466d46dd75.jpeg" alt="" height="255px" width="255px">

Doesn't work either? in the app path you missed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question