Forum Home
Press F1
 
Thread ID: 102600 2009-08-25 11:09:00 Apache MIME Types - Confused WarNox (8772) Press F1
Post ID Timestamp Content User
804180 2009-08-26 11:28:00 Well this is strange.

With Chrome, internally the image just downloads. With IE, internally and from one Terminal Server the image is automatically opened with Paint.

If I browse to a .bmp on a geocities hosted website, with Chrome the image displays in the browser.

With Firefox, from another machine internally, the image displays in the browser.

I don't really get this. What's going on :badpc:
WarNox (8772)
804181 2009-08-26 11:32:00 What happens if you change the server mimetype to image/bmp (this is the technically correct one) - does it fix the issue? Erayd (23)
804182 2009-08-26 11:50:00 Ok, I changed the mime type in /etc/mime.types to image/bmp and restarted apache. Everything still looks the same from this end. Do you mind doing another GET request as before just to see if the Content-Type changes. Sorry, I'm not sure how to do this.

Thanks,



Gregor
WarNox (8772)
804183 2009-08-26 13:57:00 Content-type header has changed to image/bmp, the image still loads fine.
HTTP/1.1 200 OK
Date: Wed, 26 Aug 2009 12:56:39 GMT
Server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch
Last-Modified: Wed, 26 Aug 2009 09:34:26 GMT
ETag: "4de23-1dfb36-47208282a2c80"
Accept-Ranges: bytes
Content-Length: 1964854
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: image/bmp
Erayd (23)
804184 2009-08-26 14:00:00 Just another thought - does it only happen with a large file, or do small (<200KB) files have the same issue? The file you're testing with is 1.9MB, which might be causing the browser to decide to download it instead. Erayd (23)
804185 2009-08-26 21:47:00 Cool, thanks for that . At least now I know that is the correct mime types file .

---

This morning I did as you suggested and put up a small and large BMP file but both loaded fine . I'm guessing there would have been something in cache last night with the browsers I was testing with and the issue was solved by changing the mime type to image/bmp, does that make sense?

Also, how did you get that HTTP request? I'd like to know for future testing .

Thanks,



Gregor
WarNox (8772)
804186 2009-08-26 22:24:00 Also, how did you get that HTTP request? I'd like to know for future testing.
As I explained in my PM to you, I used Opera Dragonfly to grab the headers - although there are also several other possible ways of doing it.
Erayd (23)
804187 2009-08-27 00:04:00 Sorry, did not see the PM. Thanks for all your help man!! WarNox (8772)
1 2