Is the MimeType validator available in Zend_Form_Element_File ZF1.6?

http://framework.zend.com/manual/en/zend.file.transfer.validators.html


$upload = new Zend_File_Transfer();

// Limit the mimetype of all given files to gif images
$upload->addValidator('MimeType', 'image/gif');

// Limit the mimetype of all given files to gif and jpeg images
$upload->setValidator('MimeType', array('image/gif', 'image/jpeg');

// Limit the mimetype of all given files to the group images
$upload->setValidator('MimeType', 'image');
-- 
View this message in context: 
http://www.nabble.com/Zend_Form_Element_File---MimeType-validator-tp19313492p19313492.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to