title: PHP Image size is less than 1mb
body: <p>curretly I am using the following to workout if the file size is less than 1MB however as the following code was from 9lession example site it said to check the size for 1mb, but if I times 1024*2 which is what they are doing here it equals not 1mb but 2048kb</p>
  
  <p>saying that the size that it uploads is not in kb instead it from my understanding is bits</p>
  
  <p>if you're confused so am I. I need a simple way to tell if an image is 1mb size</p>
  
  <pre><code>if($size&lt;(1024*1024))
  </code></pre>
  
  <p>image that i uploaded and its size:</p>
  
  <p>**Size:**10514</p>
  
  <p>Also the reason I don't want to set it on a server level because we also want to do videos. We are still working our the max-size limit we will accept for videos.</p>