title: Retrieve Uploaded Blob with PHP
body: <p>I have a script that is creating a blob and posting it to a PHP file. Here is my code:</p>
  
  <p><strong>HTML/Javascript:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function upload() {
  
      var data = new FormData();
      data.append('user', 'person');
  
      var oReq = new XMLHttpRequest();
      oReq.open("POST", 'upload.php', true);
      oReq.onload = function (oEvent) {
        // Uploaded.
      };
  
      var blob = new Blob(['abc123'], {type: 'text/plain'});
  
      oReq.send(blob);
  }
  &lt;/script&gt;
  
  &lt;button type="button" onclick="upload()"&gt;Click Me!&lt;/button&gt;
  </code></pre>
  
  <p><strong>PHP:</strong></p>
  
  <pre><code>&lt;?php
  var_dump($_POST);
  ?&gt;
  </code></pre>
  
  <p>When I look at my developer console, I am not getting any $_POST data on my PHP page. I need to know how to retrieve the text file being posted to PHP script.</p>
  
  <p>Any help is greatly appreciated!</p>