Cannot display picture in subfolder

Web hosting, FTP/database access, mirror services and hosted blogs
Post Reply
ManUtdFans
Posts: 221
Joined: Wed Aug 18, 2004 3:01 pm

Cannot display picture in subfolder

Post by ManUtdFans » Wed Feb 11, 2009 12:14 pm

I have a web page to display a picture in the subfolder:
<img src="Pictures/Foot.jpg"/>

I have no problem in displaying in my local machine but on on Exetel personal web space, it did not show picture on my webpage.

I had really uploaded the folder 'Pictures' and the jpeg file inside.

JasonM

Re: Cannot display picture in subfolder

Post by JasonM » Wed Feb 11, 2009 12:21 pm

What happens when you access the image using the full url?

It should be case sensitive, check for capitals in ".JPG"

Dazzled
Volunteer Site Admin
Posts: 6003
Joined: Mon Nov 13, 2006 1:16 pm
Location: Sydney

Re: Cannot display picture in subfolder

Post by Dazzled » Wed Feb 11, 2009 12:40 pm

Also, try:
src="./Pictures/Foot.jpg"

Check that your caps and lower case match the server site.

ManUtdFans
Posts: 221
Joined: Wed Aug 18, 2004 3:01 pm

Re: Cannot display picture in subfolder

Post by ManUtdFans » Wed Feb 11, 2009 1:14 pm

Are you saying the folder and file name should be case match?

ManUtdFans
Posts: 221
Joined: Wed Aug 18, 2004 3:01 pm

Re: Cannot display picture in subfolder

Post by ManUtdFans » Wed Feb 11, 2009 1:28 pm

Ah yes, just tried to rename the picture file extension as foot.JPG and it works now.
Why the case matters?
What the web server is using? Linux?

JasonM

Re: Cannot display picture in subfolder

Post by JasonM » Wed Feb 11, 2009 1:33 pm

I don't think it runs overpriced software, so a variant of Linux is likely.

Dazzled
Volunteer Site Admin
Posts: 6003
Joined: Mon Nov 13, 2006 1:16 pm
Location: Sydney

Re: Cannot display picture in subfolder

Post by Dazzled » Wed Feb 11, 2009 1:40 pm

Like most of the web, the server runs Linux. Unix file naming rules apply - so names are case sensitive, certain "punctuation" characters are forbidden (like slashes), and there are file and directory access permission rules.

It is also not usually helpful to use a name which might confuse the shell.

Note the line on the error page sent: "Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c Server at home.exetel.com.au Port 80"

Post Reply