Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Ben Koconis
Ben Koconis
2,737 Points

Can not see image in view mode??

When I refresh in view mode I can not see the photo. I receive this error message when I inspect:

Failed to load resource: the server responded with a status of 404 (Not Found) numbers-01.jpg

In my code I have the following:

<img src="img/numbers-01.jpg" alt="">

When I click on the photo in the sidebar, I can view it. Not sure what the problem is in view mode?

Thanks.

-Ben

James Matthews
James Matthews
21,610 Points

Are you talking about Workspaces? If so, make sure your image has definitely been placed inside Workspaces, and linked to the correct directory within the markup. E.g. Make sure the image named in <img src="img/numbers-01.jpg" alt=""> is exactly the same as the image name 'numbers-01.jpg'.

Hey Ben,

I agree with James. In addition, not only should the image be in Workspaces, but in ,your left sidebar where you manage the project files, it should also be placed inside the 'img' folder.

Good luck and please let us know if you managed to view the image in the Workspace preview.

2 Answers

Ben Koconis
Ben Koconis
2,737 Points

Hi - the image is in workspaces and is in the img.html folder. Not sure what's going on.

Ben Koconis
Ben Koconis
2,737 Points

figured it out - I had the file name misspelled. thx.

Happens to the best of us. Good luck on course :]