General Question

johnny0313x's avatar

Why are some file extentions case sensitive?

Asked by johnny0313x (1855points) January 15th, 2009

how come sometimes if i put .jpg or .JPG it doesnt matter but other times if you do one of the other the image wont show up, I was under the impression that extentions were not case sensitive…

Observing members: 0 Composing members: 0

8 Answers

Grisson's avatar

What system? Apple? MS Windows? Unix?

Jbor's avatar

On Windows it generally doesn’t matter. But on webservers etc. which often run on other systems such as Linux, it can make a difference.

johnny0313x's avatar

im on windows xp right now, but mac osx 10.3 at home and i see it on both systems

johnny0313x's avatar

maybe its cause on my web hosting its linux and thats why

Jbor's avatar

That could very well be the answer.

robmandu's avatar

It really depends on what it is exactly that you’re trying to do.

Are you attempting to open these files locally? Download them from a web server? Transfer them across platforms (via ftp, ssh, whatever)?

It would help to understand the mix of platforms and applications involved.

You mention web hosting in Linux. From that I can imply you’re downloading to view in a web browser.

Perhaps your web server’s list of mime types doesn’t have the various case possibilities involved? Or it’s assigning the wrong mime type for jpeg?

Are you using the same browser on both XP and Panther? Different ones?

And what do you mean the image “doesn’t show up”? Are you seeing a broken image icon? Or just blank?

There’s also the possibility of network issues, too.

Sorry to ramble, but there’s too many possibilities to count without more details.

johnny0313x's avatar

its just blank when i use .jpg but shows up when i use .JPG – im just trying to view the image in a browser window…firefox 3 to be exact.

robmandu's avatar

Oh, okay. So… you’re basically typing the filename into the url field.

Yes, on *nix-based web servers, the filenames are indeed case-sensitive. It would appear the file is stored on the webserver with the capital .JPG extension.

On Windows-based web servers, the filenames aren’t case-sensitive because Windows itself doesn’t treat filenames in a case-sensitive way.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther