title: FineUploader - add uploaded files on page load
body: <p>I'm trying to let user edit files they uploaded before.</p>
  
  <p>I created a script, that returns the same HTML as is generated when I upload file.</p>
  
  <pre><code>function add_fineuploader_images () {
      $post_id = $_POST['post_id'];
      $media = get_attached_media( 'image', $post_id);
      if ($media) {
      foreach ($media as $image) {
      ?&gt;
          &lt;li class="qq-file-id-0 qq-upload-success" qq-file-id="0" data-id="&lt;?php echo $image-&gt;ID; ?&gt;"&gt;
              &lt;span class="qq-upload-spinner-selector qq-upload-spinner qq-hide"&gt;&lt;/span&gt;
              &lt;img class="qq-thumbnail-selector" qq-max-size="100" qq-server-scale="" src="&lt;?php echo wp_get_attachment_image( $image-&gt;ID, 'thumbnail' );?&gt;"&gt;
              &lt;span class="qq-edit-filename-icon-selector qq-edit-filename-icon"&gt;&lt;/span&gt;
              &lt;span class="qq-upload-file-selector qq-upload-file"&gt;&lt;?php echo $image-&gt;post_title; ?&gt;&lt;/span&gt;
              &lt;input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text"&gt;
              &lt;a class="qq-upload-cancel-selector qq-upload-cancel qq-hide" href="#"&gt;Cancel&lt;/a&gt;
              &lt;a class="qq-upload-retry-selector qq-upload-retry qq-hide" href="#"&gt;Retry&lt;/a&gt;
              &lt;a class="qq-upload-delete-selector qq-upload-delete" href="#"&gt;Delete&lt;/a&gt;
              &lt;a class="qq-upload-featured-selector qq-upload-set-featured" href="#"&gt;Set as featured&lt;/a&gt;
              &lt;span class="qq-upload-status-text-selector qq-upload-status-text"&gt;&lt;/span&gt;
          &lt;/li&gt;
      &lt;?php
      }
  }
  exit();
  
  }
  </code></pre>
  
  <p>And on page load I'm calling AJAX Post to load the images into page:</p>
  
  <pre><code>var post_id = $('#post_id').val();
      $.post(Ajax.ajaxurl, { action: 'add_fineuploader_images', post_id: post_id }, function(data) {
          console.log(data);
          $('.qq-upload-list').html(data);
      });
  </code></pre>
  
  <p>This created the same preview, as when the files are uploaded via FineUploader. </p>
  
  <p>Now, I would need to let FineUploader know about these, so DELETE and other methods work.</p>
  
  <p>I initialize FineUploader like this:</p>
  
  <pre><code> $("#fine-uploader").fineUploader({
    request: {
          endpoint: Ajax.ajaxurl,
          params: {
              action: 'attach_files',
              post_id: $('#post_id').val()
          }
      },
    deleteFile: {
          enabled: true,
          endpoint: Ajax.ajaxurl,
          method: 'POST'
      }
  });
  </code></pre>
  
  <p>How should I reinitialize FineUploader? Or, is there a better way to do this?</p>