title: How check the file extension zend validator?
body: <p>I need to upload the file to the database and check it out before the expansion of the validator.
  Do so - take the content of a file function *file_get_contents* and file name from the *$ _FILES*.
  Need to check the file extension (zend validator). How?</p>
  
  <p>What wrong in my code:</p>
  
  <pre><code>        $allowed_ext = 'pic, jpg, gif, png, bmp';
          $validator = new Zend_Validate_File_Extension();
          return $validator-&gt;isValid($allowed_ext, $fileName);
          if (!$validator-&gt;isValid($allowed_ext, $file)) 
              return 'Invalid extension';
  </code></pre>