Click here to Skip to main content
15,904,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to get this photo to show up on my webpage using the following code but for some rediculous reason I cannot seem to find a way to get it to. Not sure what I can be doing wrong. It's the 'albumart.jpg' image. I have the image in the correct folder and everything. Is it the way I'm resizing the photo?



Posted
Comments
DaveAuld 11-Nov-11 13:17pm    
have you tried to remove the leading slash? that will be referring you back to the root of the site and not relative to the current page, and not knowing your folder struture can't suggest anything else.
jalonzo 11-Nov-11 13:19pm    
Yes, tried that. No luck. Really driving me crazy, something so simple can just not work.
DaveAuld 11-Nov-11 13:21pm    
If you type the full website address url to the image in the browser address bar does the image load?
jalonzo 11-Nov-11 13:40pm    
Does not, it says: Forbidden

You don't have permission to access /promo/The_Glass_Washed_Up_Remixes_Promo/images/albumart.jpg on this server.

...
jalonzo 11-Nov-11 13:41pm    
Again, sorry for being such a newb, and I appreciate the help alot.

1 solution

Based on the comments above;

The error lies in the file permissions on the image file. Compare to other images, or copy and paste the image into the folder to inherit the default permissions for the folder.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900