public function validate($path, array $mimeTypes = [])
    {
        if (empty($mimeTypes)) {
            $mimeTypes = $this->mimeTypes;
        }

        return in_array(self::getType($path), $mimeTypes);
    }
public function validate($path, array $mimeTypes = [])
    {
        if (empty($mimeTypes)) {
            $mimeTypes = $this->mimeTypes;
        }

        return in_array(self::getType($path), $mimeTypes);
    }
public function validate ( $ path , array $ mimeTypes = [ ] ) { if ( empty ( $ mimeTypes ) ) { $ mimeTypes = $ this -> mimeTypes ; } return in_array ( self :: getType ( $ path ) , $ mimeTypes ) ; }
validate mime type file

@param stirng $path image file path

@return boolean
validate mime type file