Thanks, it will be a welcome addition. Matthew Weier O'Phinney-3 wrote: > > -- gerardroche <[EMAIL PROTECTED]> wrote > (on Thursday, 04 September 2008, 08:45 AM -0700): >> >> Is the MimeType validator available in Zend_Form_Element_File ZF1.6? > > No. Currently there's an extension validator, but not one for MimeType. > MimeType will be added in a later release (likely in 1.6.1). > >> 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. >> > > -- > Matthew Weier O'Phinney > Software Architect | [EMAIL PROTECTED] > Zend Framework | http://framework.zend.com/ > >
-- View this message in context: http://www.nabble.com/Zend_Form_Element_File---MimeType-validator-tp19313492p19314395.html Sent from the Zend Framework mailing list archive at Nabble.com.
