QF File-Element rule does noch work
| From: | Mirco Blitz | Date: | Sat, 29 Jan 2005 02:27:29 +0000 |
| Subject: | QF File-Element rule does noch work | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-17272@lists.php.net to get a copy of this message | ||
Hi,
when I try to add a rule to the file elemet with mimetype every filetype
runs through without an error.
Is there an error. Only jpg files should get to the server.
Here my code.
$form->addElement('file','datei','Logo',$classformtxt);
$form->addRule('datei', 'Bitte eine jpg Datei auswählen',
'mimetype',
array('image/jpeg', 'image/jpeg', 'image/pjpeg') );
Thanks for your help in advance.
Mirco Blitz