title: How to bypass the exif_imagetype function to upload php code?
body: <p>I read that <strong>exif_imagetype</strong> is secure function to avoid uploading php or other shell code instead of image file. Recently i read another article that we can bypass this secure function by some simple methods. So if someone knows the exact method to bypass can u share your answers.</p>
  
  <p>I used following code in my php script so i wanted to know this is vulnerable or not and remedy for the same </p>
  
  <pre><code> if (! exif_imagetype($_FILES['upload']['tmp_name'])) 
     { 
      echo "File is not an image";
     }
  </code></pre>