Re: What is wrong with this expression?
| From: | Marek Kilimajer | Date: | Mon, 18 Nov 2002 15:25:13 +0000 |
| Subject: | Re: What is wrong with this expression? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124924@lists.php.net to get a copy of this message | ||
Nothing I can see. What is not working?
JohnMeyer wrote:
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?