Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images in Capital letters


msheno01

Recommended Posts

Posted

This 'problem' is because unix systems are case-sensitive in regards to file names. Windows is not case-sensitive, so many people are used to case not mattering.

 

If your images are in uppercase, and you refer to them in HTML in lowercase, it actually has nothing to do with OSC 'choosing the wrong images.' When you type in a URL in your browser window, it sends a request for that page to the webserver. The webserver sends back the HTML and your browser parses it. If there is an image in it, your browser sends a second request to the webserver requesting the exact image specified in the HTML. If the webserver is filesystem case-sensitive, it will not find the image unless it finds the exact name, case included. Then your browser displays the image as not found or broken.

 

You can do a couple of things to help this:

 

1. FTP programs usually have an option to "Force lower-case filenames."

2. There might be a contribution to force file names to lower case when you upload them in the products edit page and the categories edit page. I don't know, and a quick search doesn't turn one up.

 

Consistency (usually keeping all files lowercase) is really the only solution to this.

Contributions

 

Discount Coupon Codes

Donations

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...