For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > January 2005 > Quickform: file upload will not accept *.jpg file despite array('image/jpeg', 'image









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Quickform: file upload will not accept *.jpg file despite array('image/jpeg', 'image
l Burnerheimerton

2005-01-13, 8:58 pm

I have the following entry included in a file upload:

$form->addRule('fileN', jpeg or gif are aceptable
format', 'mimetype', array('image/jpeg', 'image/jpg',
'image/gif') );

Adding a *.gif file works fine but NOT *.jpg.

And ideas?



__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com