I tried it and it seems that it is passing my validation
$upload = new Zend_File_Transfer_Adapter_Http ( );
# Set file validation rules
$upload->addValidator ( 'Size', false, 20000 )
->addValidator ( 'Count', false, 1 )
->addValidator ( 'Extension', false, 'jpg,gif' )
->addValidator ( 'IsImage', false, 'jpeg,gif' )
->addValidator ( 'MimeType', false, array ('image/gif', 'image/jpeg'
)
);
I changed the extension of one php file from php to jpg and i managed to
upload this file!
am I missing something in my validation rules?
--
View this message in context:
http://www.nabble.com/Image-Uplaod-Validation-Question-tp24853528p24854085.html
Sent from the Zend Framework mailing list archive at Nabble.com.