note 97391 deleted from function.image-type-to-mime-type by danbrown
| From: | danbrown@php.net | Date: | Sat, 17 Apr 2010 15:18:27 +0000 |
| Subject: | note 97391 deleted from function.image-type-to-mime-type by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168348@lists.php.net to get a copy of this message | ||
Note Submitter: lev at sikosoft dot com
----
The method by benshelock at gmail dot com will not work on IE, as Microsoft loves to create their
own "standards" (no one else uses).
For example, IE will make a png's mime-type as "image/x-png", and jpgs as
"image/pjpeg".
I suspect they do this sort of stuff as part of their conspiracy to make computing as frustrating as
possible.
You could just add in conditions for those as well, but who knows if in a couple years from now
Microsoft decides "hey, maybe we should change the mime-types again; remember how funny it was
when we broke support for it last time?"
Here is an alternative:
http://r-1.ch/imagecheck.phps
Though I have no idea, to be honest, if it fumbles in the same way as I have yet to give it a try.