title: Delete uploaded image using ajax uploader
body: <p>I used ajax loader to uplaods files to server.It works fine but now i want to set delete option with each image and can delete that image before saving.My current images look like :</p>
  
  <p><img src="https://i.stack.imgur.com/sgK6u.png" alt="enter image description here"></p>
  
  <p>I am using this file uploader script for file uploading.<a href="http://tutorialzine.com/2013/05/mini-ajax-file-upload-form/" rel="nofollow noreferrer">Link</a></p>
  
  <p>My Code for files upload is :</p>
  
  <pre><code>jQuery("#fileuploader").uploadFile({
      url:"&lt;?php echo $this-&gt;getUrl('pmembers/priority/productimages/') ?&gt;",
      multiple:true,
      fileName:"myfile",
      onSuccess: function (files, response, xhr,pd) { 
        var dir = '&lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."mkd/uploads/".Mage::getSingleton("customer/session")-&gt;getId()."/"; ?&gt;';
  
          jQuery('#files').append('&lt;li style="width:60px; float:left;margin-left:5px; margin-right:5px;"&gt;&lt;img width="60" height="60" src="'+dir+files+'" /&gt;&lt;/li&gt;&lt;img src="cross.png" /&gt;');
  
  
         },
      });
  });
  </code></pre>