0

I have image on my machine that I want to display in img element.

<img class="card-image" src="'file:///C:/Users/.../KITCHEN/imgname.png'"/>

But I get this error:

1 Not allowed to load local resource: file:///C:/Users/.../KITCHEN/imgname.png

Any idea how to fix this issue.

UPDATE: images outside the project folder

Michael
  • 13,950
  • 57
  • 145
  • 288

1 Answers1

1

You should not give an exact local path. You can use a relative path. Here is detailed explanation.

https://www.w3schools.com/tags/att_img_src.asp

hco
  • 655
  • 1
  • 5
  • 15