image validation
| From: | Michael Hall | Date: | Sun, 08 Apr 2001 01:57:32 +0000 |
| Subject: | image validation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-47619@lists.php.net to get a copy of this message | ||
I'm wondering if there is any sure way for PHP to determine whether an
uploaded file is definitely an image file.
I have a script that checks for size and mime type ('image/png' or
'image/jpeg'). The script works fine, but I've heard that it is possible
to add those mime type headers to files that aren't images at all, and
possibly something mailicious.
Mick