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 trialJason Hayes
4,810 PointsCan't view images
I am trying to add the images in workspaces. I have uploaded the images to the folder but when I try to view the images it appears they are showing as a broken link. Like they are not loading correctly. What am I doing wrong?
4 Answers
Gloria Dwomoh
13,116 PointsDid you place the images under the Img folder? Make sure the images are nested below it and not in the main folder.
Jason Hayes
4,810 PointsNathan, that is exactly what is happening. I uploaded the image, created the image folder, then wrote the code. When I went to preview the page that is what I saw. Then when I went back to the code, I tried to view the image and am seeing exactly what you are showing there.
Gloria Dwomoh
13,116 PointsIf you can't see the images in the preview there might be an error in the code you wrote. You can show us your code, maybe we can help.
Nathan Williams
Python Web Development Techdegree Student 6,851 PointsThanks, Jason. FWIW, I think workspaces doesn't show images in the editor, though I can see how that would be confusing. If you're having trouble viewing them in the preview, it's probably a path or capitalization problem. Hope that helps!
Andrew Olson
4,028 PointsHi Jason,
We just deployed a fix for this. Can you try again and see if image previewing is working for you now. Sorry for hiccup there.
Jason Hayes
4,810 PointsYes, the preview has now been fixed. Thanks for all your help.
Nathan Williams
Python Web Development Techdegree Student 6,851 PointsNathan Williams
Python Web Development Techdegree Student 6,851 PointsHi Jason,
Do you mean you see the "broken link" in the workspaces editor, like this?
or does it appear broken when you use the workspaces preview feature to view the website?