Send JSON with FormData-Object through XHR
<p>I've been trying to send images through AJAX to my PHP script and I got it to work out fine. Now I want to send some serialized info along with the images. I've tried a few things to no avail. Can anyone help?</p>

<pre><code>var formdata = New FormData();
var info = $('#upload').serializeArray();

$.ajax({
  url: "accept.php",
  type: "POST",
  data: formdata,
  processData: false,
  contentType: false,
  success: function (res) {
    console.log(res); 
  }
});
</code></pre>
