title: Symfony2.2 @Assert\Image not working
body: <p>Completely misses any files. </p>
  
  <p>If I use Assert \ File works, but then does not take minWidth, minHeight </p>
  
  <p>Purpose: 
  1) The file must be an image. 
  2) Make a limit on the resolution of the image</p>
  
  <p>My Entity:</p>
  
  <pre><code>/**
   * @Assert\Image(
   *     minWidth = 150,
   *     maxWidth = 150,
   *     minHeight = 190,
   *     maxHeight = 190
   * )
   * @Assert\NotBlank(message="Додайте будь ласка фотографію")
   */
  protected $file;
  
     /**
   * Sets file.
   *
   * @param UploadedFile $file
   */
  public function setFile(UploadedFile $file = null)
  {
      $this-&gt;file = $file;
  }
  
  /**
   * Get file.
   *
   * @return UploadedFile
   */
  public function getFile()
  {
      return $this-&gt;file;
  }
  </code></pre>
  
  <p>Generate form:</p>
  
  <pre><code>$builder
          -&gt;add('file', 'file', array(
              'label' =&gt; 'Ваша фотографія (Обов`язковий розмір: 150*190)',
              'required' =&gt; true,))
  </code></pre>