Re: problem with QuickForm file upload
| From: | Thomas Schulz | Date: | Mon, 25 Nov 2002 22:49:19 +0000 |
| Subject: | Re: problem with QuickForm file upload | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-11092@lists.php.net to get a copy of this message | ||
Maarten Stolte schrieb in php.pear.dev:
> On internet explorer, it fails unless i remove the mimetype check.
> Here is my code, anyone care to look at it?
...
> $form->addRule('file', 'Must be a jpeg', 'mimetype',
> array('image/jpeg'));
When you make a print_r($_FILE) in front of script you will see that the
IE send an not standardized mimetype for JPG's.
array('image/jpeg', 'image/pjpeg')
should solve the problem.
ThS.
--
http://4bconsult.de