On Tue, Dec 15, 2009 at 11:11 AM, St. Laurent, Steven
<Steven.StLaurent(a)arrisi.com> wrote:
Contrary to comments in the bug stating otherwise it
doesn't matter what the image file extension is, the browser gets the mime type sent
to it and it processes it appropriately. If you go into your db and change the image mime
type (major/minor fields in the image table) to text/plain the browser doesn't display
the image regardless of the filename extension.
Actually, the file extension matters in some cases, but it depends on
context. When the URL to the image is included via img tag, most
browsers will compensate for an incorrect media type, and display the
image regardless of format. When deep linking to a URL (e.g.
http://upload.wikimedia.org/wikipedia/commons/3/34/HTTP-Cookie-Google.png
), browsers won't do said compensation anymore.
The MIME type will be correctly stored in the database, but the
database doesn't get read by the webserver that's actually serving the
files.
Rob