Append data to formData object
<p>I seem not to get additionally data added to "formData".</p>

<p>First i add my input file:</p>

<pre><code>var form = $('#uploadForm')[0];
var formData = new FormData(form);

var input = $("#uploadPhoto")[0];
//Add input file data to formData
formData.append(input.name, input.files[0]);
</code></pre>

<p>This works just fine.<br>
And my PHP <code>var_dump</code> after "ajax call" results:</p>

<pre><code>array(1) {
  ["uploadPhoto"]=&gt;
  array(5) {
    ["name"]=&gt;
    string(5) "1.xls"
    ["type"]=&gt;
    string(24) "application/vnd.ms-excel"
    ["tmp_name"]=&gt;
    string(40) "..../tmp/phpmyn3E1"
    ["error"]=&gt;
    int(0)
    ["size"]=&gt;
    int(42799)
  }
}
</code></pre>

<p>Now i'd like to add some extra data for passing on to the php script:</p>

<pre><code>formData.append('usr', selectedUsr);
formData.append(input.name, selectedUsr);
formData.append('usr', 'usr: '+ selectedUsr);
</code></pre>

<p>When i now check my PHP var_dump, there is no "usr" data in array.<br>
Why?</p>