note 11485 deleted from Handling file uploads by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Thu, 22 Feb 2001 19:09:24 +0000 |
| Subject: | note 11485 deleted from Handling file uploads by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11432@lists.php.net to get a copy of this message | ||
I am trying to validate the type of file that can be uploaded
to only gif & jpeg using the following:
if( ($splashFile!="image/gif") || ($splashFile!="image/pjpeg") ||
($splashFile!="image/jpeg") ) {
echo "this is not a valid image type";
unlink($splashFile);
Any gifs & jpegs I try and upload meets this condition. Any help greatly appreciated.