title: How do I translate a html form post request into Postman
body: <p>So I got this simple HTML form</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;
    Select image to upload:
    &lt;input type="file" name="fileToUpload" id="fileToUpload"&gt;
    &lt;input type="submit" value="Upload Image" name="submit"&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/3f6pI.jpg" rel="nofollow noreferrer">Which looks like this</a>
  <a href="https://i.stack.imgur.com/3f6pI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3f6pI.jpg" alt="enter image description here" /></a></p>
  <p>This allows me to upload an image and post it to the server where is it handled by the &quot;upload.php&quot; script.</p>
  <p><code>upload.php</code> looks like this</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  $target_dir = &quot;uploads/&quot;;
  $target_file = $target_dir . basename($_FILES[&quot;fileToUpload&quot;][&quot;name&quot;]);
  $uploadOk = 1;
  $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
  
  // Check if image file is a actual image or fake image
  if(isset($_POST[&quot;submit&quot;])) {
    $check = getimagesize($_FILES[&quot;fileToUpload&quot;][&quot;tmp_name&quot;]);
    if($check !== false) {
      echo &quot;File is an image - &quot; . $check[&quot;mime&quot;] . &quot;.&quot;;
      $uploadOk = 1;
    } else {
      echo &quot;File is not an image.&quot;;
      $uploadOk = 0;
    }
  }
  </code></pre>
  <p>I would like to use Postman to send these post requests manually, but I don't how to make a proper request in postman.</p>
  <p><a href="https://i.stack.imgur.com/Gr2QD.jpg" rel="nofollow noreferrer">So far I have tried like this</a>
  <a href="https://i.stack.imgur.com/Gr2QD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gr2QD.jpg" alt="enter image description here" /></a></p>
  <p>But the PHP script doesn't recognise <code>$_FILES[&quot;fileToUpload&quot;]</code></p>
  <p>I hope someone can tell/explain to me how I can use <code>Postman</code> so send a post request that can be handled by this PHP script.</p>
  <p>If it's possible to do exactly this but then in JavaScript, I would love to know.</p>
  <p>Have a great weekend :)</p>