RE: [PEAR] [qf] mimetype rule fails on IE
| From: | Mark Steudel | Date: | Fri, 13 Jan 2006 01:00:30 +0000 |
| Subject: | RE: [PEAR] [qf] mimetype rule fails on IE | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22512@lists.php.net to get a copy of this message | ||
I also tried 'image/jpg' in the $mime array
-----Original Message-----
From: Mark Steudel [mailto:mark@netriver.net]
Sent: Thursday, January 12, 2006 4:57 PM
To: pear-general@lists.php.net
Subject: [PEAR] [qf] mimetype rule fails on IE
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