Re: Quickform: fileupload not accepting JPEG despite having rule for array('image/jpeg', 'image/jpg', 'image/gif')
| From: | Justin Patrin | Date: | Mon, 17 Jan 2005 22:44:48 +0000 |
| Subject: | Re: Quickform: fileupload not accepting JPEG despite having rule for array('image/jpeg', 'image/jpg', 'image/gif') | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16973@lists.php.net to get a copy of this message | ||
On Mon, 17 Jan 2005 12:04:37 -0800 (PST), l Burnerheimerton
<lburnerheimerton@yahoo.com> wrote:
> I have a form with file upload. It works when I
> upload a *.gif file but NOT a *.jpg file.
>
> Here's the rule in QF:
>
> $form->addRule('filename', 'Must be a jpeg or gif file
> format', 'mimetype', array('image/jpeg', 'image/jpg',
> 'image/gif') );
>
Do a print_r($_FILES) when you post and see what's in the type key.
--
Justin Patrin