note 23559 added to function.move-uploaded-file

From: Date: Mon, 22 Jul 2002 19:39:06 +0000
Subject: note 23559 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-33384@lists.php.net to get a copy of this message
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! -- http://www.php.net/manual/en/function.move-uploaded-file.php http://master.php.net/manage/user-notes.php?action=edit+23559 http://master.php.net/manage/user-notes.php?action=delete+23559 http://master.php.net/manage/user-notes.php?action=reject+23559

« previous php.notes (#33384) next »