Re: [qf] mimetype rule fails on IE
| From: | Alexey Borzov | Date: | Fri, 13 Jan 2006 09:09:36 +0000 |
| Subject: | Re: [qf] mimetype rule fails on IE | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22513@lists.php.net to get a copy of this message | ||
Hi,
Mark Steudel wrote:
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?Yes, you didn't search the archives of this mailing list. This question is frequently asked and a solution was definitely posted here.