[qf] mimetype rule fails on IE
| From: | Mark Steudel | Date: | Fri, 13 Jan 2006 00:57:09 +0000 |
| Subject: | [qf] mimetype rule fails on IE | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-22511@lists.php.net to get a copy of this message | ||
I've got the following mimetype rule:
$mime = array( 'image/jpeg', 'image/gif', 'application/pdf',
'image/tiff' );
$form->addElement('file', 'filename1', 'Filename:');
$form->addRule('filename1', 'Invalid file type. Allowed: jpg, gif, tiff,
pdf', 'mimetype', $mime);
It works in Firefox, both detecing non allowed mimetypes and allowing good
mimetypes. But when you run this in IE it fails. Am I doing something wrong?
Thanks, MS