title: Cannot remove files from file list using JQuery-File-Upload
body: <p>I have an issue using the <a href="https://github.com/blueimp/jQuery-File-Upload" rel="noreferrer">JQuery-File-Upload</a> plugin. I am using the plugin directly and not through the author's provided html example pages. Basically I have a form with some inputs
  one of which is a file input. The first upload works fine but when I attempt a second upload both files are sent (the first one for the second time) when it should only be the second one.</p>
  
  <p>Example:</p>
  
  <ul>
  <li>File 1 is selected. </li>
  <li>File 1 is uploaded.</li>
  <li>Success.</li>
  <li>Using jquery I reset the form with $(FORM_SELECTOR).trigger('reset')</li>
  <li>File 2 is selected.</li>
  <li>File 1 and file 2 are BOTH uploaded.</li>
  <li>Problem. </li>
  </ul>
  
  <p>Now I have two copies of file 1. This is not what I want.</p>
  
  <p>Obviously there isn't much point of using an ajax form upload if it only works once so I assume that there is something I am missing.</p>
  
  <p>Is there a way to reset the file queue?</p>
  
  <p>When examining the data.files object I can see that the files are there after the form
  is reset. What can I do to sync the plugin with the input or clear out the data.files.
  If I manually clear out the data.files array (via pop or data.files = []) attempting a
  second upload does not work.</p>
  
  <p>I init the upload form like this:</p>
  
  <pre><code>    $('#file-upload-form').fileupload({
      url: 'uploads/upload',
      type: 'POST',
      dataType: 'json',
      multipart: true,
      dropZone: null,
      formAcceptCharset: 'utf-8',
      autoUpload: true,
      add: function (e, data) {
          fileUploadData = data;
          $("#upload-file-btn").click(function () {
              data.submit()
                  .success(function (e, status, data) {
                      console.log("success response from post", status, data);
                      var i = '&lt;input id="file-select-input" name="files[]" multiple/&gt;';
                      $('#file-select-input').replaceWith(i);
                  })
          });
      }
  });
  </code></pre>