Re: Quickform: fileupload not accepting JPEG despite having rule for array('image/jpeg', 'image/jpg', 'image/gif')

From: Date: Tue, 18 Jan 2005 00:36:17 +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-16980@lists.php.net to get a copy of this message
It says the file type = image/pjpeg Never heard of thatone before. Any thoughts? --- Justin Patrin <papercrane@gmail.com> wrote: > 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 > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.pear.general (#16980) next »