title: get uploaded file size in bytes in php
body: <p>I am uploading a file which is an image. I want to get the size of that image every time in bytes only using PHP. I had done this by far</p>
  
  <pre><code>$name=$_FILES['image']['name'];
  if($name!=null)
  {
      $tmpDest=$_FILES['image']['tmp_name'];
      $size=$_FILES['image']['size'];
      $perDestination="main/$name";
      $result=move_uploaded_file($tmpDest,$perDestination);
      echo $size;
  }
  </code></pre>