title: Symfony2 - maxSize parameter not working on file upload
body: <p>I have a file uploading function on my Symfony2 project.</p>
  
  <p>I am seting the maxSize parameter like that:</p>
  
  <pre><code>$manuscript_file = new File(array(
          'maxSize' =&gt; '20M',
          'mimeTypes' =&gt; array(
              'application/msword',
              'application/zip',
          ),
          'mimeTypesMessage' =&gt; 'Please upload a valid manuscript file. Valid types are: doc, docx, zip',
      ));
  </code></pre>
  
  <p>The problem is that when I am trying to upload a 2M or 3M word file, I am getting the validation message:</p>
  
  <pre><code> The file is too large. Allowed maximum size is 20M bytes.
  </code></pre>
  
  <p>Did you faced that? Or is my code wrong.</p>
  
  <p>I took the example from the Symfony documentation:</p>
  
  <p><a href="http://symfony.com/doc/2.1/reference/constraints/File.html#maxsize" rel="nofollow">Symfony File - Validation Constraints Reference</a></p>