title: Upload an image through HTTP POST with Postman
body: <p>I've been trying for a while to send an image via Postman to a simple PHP script that should display the sent image. The steps I followed were:</p>
  
  <p>Postman "client" side:</p>
  
  <ol>
  <li>Select <em>POST</em> request</li>
  <li>Select HEADER <em>Content-Type</em> with value <em>multipart/form-data</em></li>
  <li>In the Body tab select <em>form-data</em> introduce the <em>key</em> = image_test, change from <em>Text</em> to <em>File</em> and search for a image, ex: photo.png</li>
  <li>Send POST request.</li>
  </ol>
  
  <p>In the PHP script I just have:
  <code>echo '&lt;img src="data:multipart/form-data,' . $_POST['image_test'] .'"/&gt;';</code></p>
  
  <p>This solution isn't working for me although with <code>print_r($_POST)</code> I'm able to see the encoded image. Could this be a problem of the host (<a href="https://ide.c9.io" rel="noreferrer">https://ide.c9.io</a>) or Postman? I made some other tests with Postman and base64 images and the <em>Display</em> tab of Postman wasn't able to display the decoded images; the only way was to access through the browser.</p>