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

From: Date: Mon, 17 Jan 2005 20:04:37 +0000
Subject: Quickform: fileupload not accepting JPEG despite having rule for array('image/jpeg', 'image/jpg', 'image/gif')
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16971@lists.php.net to get a copy of this message
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') ); Any ideas? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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