title: $_FILES["file"]["size"] returning 0?
body: <p>I am trying to upload something using PHP and set a limit on the total size that I allow to be uploaded. I want to limit my uploads to 2MB but for some reason whenever I try to check with an if statement like this: </p>
  
  <pre><code>if (($_FILES["file"]["size"] &lt; 2097152))
  </code></pre>
  
  <p>A file that is large (such as a 7mb file) will pass through the if statement because for whatever reason if I print <code>$_FILES["file"]["size"]</code>, it will return 0, instead of the proper number of bytes. If I try to upload something that is smaller, like 342kb the <code>$_FILES["file"]["size"]</code> will return the proper size.</p>
  
  <p>Is there anyway to get <code>$_FILES["file"]["size"]</code> to actually hold the proper size of the file? Otherwise I do not know how to fix this problem.</p>