title: get image size before upload image php
body: <p>I want to know the image size in mb but before ulpload do the same.
  I have:</p>
  
  <pre><code>$errors =       array();
  $image =        $_FILES['image']['name'];
  $file_tmp =     $_FILES['image']['tmp_name'];
  $image_type =   $_FILES['image']['type'];
  $descricao =    $_POST['descricao'];
  
  if(empty($image) || $_FILES['image']['size'] &gt;= 1000)
  {
      $_SESSION['alert_type'] = -1;
      $_SESSION['msg_alert'] = "imagem didnt upload!";
  }
  
  else
  {
   //upload
  }
  </code></pre>
  
  <p>The problem is to know the file size, the $ _FILES ['image'] ['size'] is not working well.
  thanks</p>