Warren0366
Warren0366

Reputation: 1

Image src - GET 404 error with meanjs

I need your help.

I'm doing a web application using meanjs (I'm new to meanjs) the question is that when I add the following tag to my view

img src = "../ img / logo.png"

and refresh my page, my picture is not displayed and the console gives me a 404 GET error. Why is this happening? I'm doing something wrong?

Please help

Upvotes: 0

Views: 375

Answers (2)

Holger Will
Holger Will

Reputation: 7526

Typicaly you are in your webroot so just delete the "..", so your path reads: "/img/logo.PNG"

If that does not help, try an absolut path.

Upvotes: 0

Andrew Nunez
Andrew Nunez

Reputation: 23

The 404 Get error typically shows up when the image can't be found/doesn't exist in the directory you specified. Make sure the image is in the correct location, or adjust the src to look in the correct location.

Upvotes: 1

Related Questions