Re: mimetype rule for QuickForm doesnt work
| From: | Alexey Borzov | Date: | Sat, 31 Dec 2005 07:29:07 +0000 |
| Subject: | Re: mimetype rule for QuickForm doesnt work | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22399@lists.php.net to get a copy of this message | ||
Hi,
Dan Rossi wrote:
Hi there, for some strange reason aparantly the mimetype check rule doesnt work when uploading images in IE but does for say mozilla and safari, here is the rule $this->form->addRule('files','Incorrect File Mimetype','mimetype',array('image/jpeg')); any ideas ?"Doesn't work" is *the* most accurate and helpful description of the problem one can imagine. Explorer may send another mimetype for your jpeg file. Do a var_dump($_FILES) somewhere to see what type exactly.