Hello friends,
I´m trying to use the zend mime validator and I´m doing this:
$mime = array('image/jpeg','image/gif');
$valid = new Zend_Validate_File_MimeType($mime);
if ($valid->isValid($_FILES['file']['name']){
// do some stuff
}
But it not working, the documentation is weak, how can I use it??! THanks and best regard´s!