What is wrong with this expression?

From: Date: Mon, 18 Nov 2002 14:51:15 +0000
Subject: What is wrong with this expression?
Groups: php.general 
Request: Send a blank email to php-general+get-124913@lists.php.net to get a copy of this message
if (is_uploaded_file($_FILES["imagefile"]["tmp_name"]) && ($_FILES["imagefile"]["type"] != "image/jpeg" && $_FILES["imagefile"]["type"] != "image/gif" && $_FILES["imagefile"]["type"] != "image/jpg" && $_FILES["imagefile"]["type"] != "image/png")) I'm trying to weed out everything that isn't a .jpg, .gif, or .png. What's wrong with this?

« previous php.general (#124913) next »