note 23559 deleted from function.move-uploaded-file by didou
| From: | didou@php.net | Date: | Thu, 18 Sep 2003 14:08:58 +0000 |
| Subject: | note 23559 deleted from function.move-uploaded-file by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56697@lists.php.net to get a copy of this message | ||
Note Submitter: patrick@mokolabs.com
----
If you're validating image uploads by reading MIME types, here's a gotcha to look out for.
Progressive JPEGs are sometimes tagged as 'image/pjpeg'--instead of the more common
'image/jpeg'. (Windows reads 'image/pjpeg', while the Mac reads
'image/jpg')
So if you're testing for valid JPEG files, make sure your code accounts for both potential MIME
types!