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 trialNandakishore J
4,641 PointsThe Image is appearing in the workspace, but shows 'not found' in Preview. Why is this so?
Here's the link : http://port-80-zu75orv4jx.treehouse-app.com/ There is not problem in the code, as shown below: <img src="/images/numbers-01.jpg" alt=""> Image does exist.
1 Answer
Steve Hunter
57,712 PointsLet's have a look at your html, please.
One thing - are your images inside the img
folder and does your code also use the img
directory?
Steve.
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsYour URL is pointing to an
images
directory - have you renamed theimg
folder in the Workspace?Nandakishore J
4,641 PointsNandakishore J
4,641 PointsThank you, Steve for looking into the topic. Well, I uploaded the images to the 'images' folder
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsInteresting ... the Workspace calls it
img
; did you rename it?The
html
in View Source looks fine but the images aren't working. I'm getting a 404.Have you tried moving the files out of the directory and then back in again?
Also, remove the slash at the beginning of the link ... you've got
href="/images/..."
miss out that first slash.That shouldn't affect it ... but it is worth a try!
Steve.
Nandakishore J
4,641 PointsNandakishore J
4,641 PointsI'll just check right now
Nandakishore J
4,641 PointsNandakishore J
4,641 PointsI think the Workspace ways cannot be modified, when I renamed the folder and changed in the code, everything came right. Thank you Steve.
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsImages are now working!! \o/