title: validation error using max file size in laravel
body: <p>I am having some trouble uploading a file - excel file.</p>
  
  <p>I am using this rule in laravel 5.5 for max file size 3MB. According to the documentation the value must be in KB.</p>
  
  <pre><code>// Max file size: 3MB (3000 KB)
  $validator = Validator::make($request-&gt;all(), [
      'Feed' =&gt; 'file|max:3000',
  ]);
  if ($validator-&gt;fails()) {
          return Redirect::back()-&gt;withErrors(['File to big!']);
      }
  </code></pre>
  
  <p>In php.ini i have: </p>
  
  <pre><code>upload_max_filesize=3M
  </code></pre>
  
  <p>The file which i want to upload is 2.3 MB. </p>
  
  <p>What i did wrong on validation?</p>
  
  <p><strong><em>UPDATE</em></strong></p>
  
  <p>Displaying the $_FILES['Feed'] for the file that i want to upload (original.xls = 2.3MB) </p>
  
  <pre><code>array:5 [
   "name" =&gt; "original.xls"
   "type" =&gt; ""
   "tmp_name" =&gt; ""
   "error" =&gt; 1
   "size" =&gt; 0
  ]
  </code></pre>
  
  <p>"error" => 1</p>
  
  <p>and upload another small file 5.6 KB:</p>
  
  <pre><code>array:5 [
   "name" =&gt; "test.xls"
   "type" =&gt; "application/vnd.ms-excel"
   "tmp_name" =&gt; "/tmp/phpJUJfy4"
   "error" =&gt; 0
   "size" =&gt; 5632
  ]
  </code></pre>
  
  <p>"error" => 0 and i can see the size for it</p>
  
  <p><strong><em>UPDATE 2</em></strong></p>
  
  <p>If i start to delete from the excel file and get max: 2MB, the file uploads with no errors. </p>
  
  <p>Why? 2.0 MB uploads the file and 2.1 MB NOT???</p>