Trying to manually remove a file from Multifile upload
<p>I'm using <a href="http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Examples" rel="nofollow">jQuery Multiple File Upload Plugin</a>
and I have the following:</p>

<pre><code>$(function(){ // wait for document to load
    $('#attachFiles').MultiFile({
        list: '#attList',
        STRING: { remove: '&lt;img src="cross.gif" title="Remove this attachment" border="0"&gt;' },
        afterFileAppend: function(element, value, master_element) {
            $(".amount").each(function(){
                var i       = $(this).attr("i");
                var curVal  = $("#attachment_" + i).val();
                if($("#attachment_" + i).is(":checked") &amp;&amp; curVal == "X") {
                    $("#attachment_" + i).attr("value", value);
                    $("#attachment_" + i).attr("title", "Attachment " + value + " linked");
                    aCounter++;
                };
            });
            if(aCounter==0) {
                alert("You need to select...");
                //Remove should be here
            }
        }
    });
});
</code></pre>

<p>If I add a file named test.pdf then one named test2.pdf my goal is to automatically remove test2.pdf if my aCounter variable is 0 (that would mean the user did not check off any additional check boxes named attachment_#.</p>

<p>I can't seem to figure out how to remove just the file that was added.
If I understand correctly, the value of the file that I add gets added to id="attachfiles" which is a </p>

<pre><code>&lt;input type="file" name="userfile[]" id="attachFiles" class="file" size="1" accept="pdf|jpg|jpeg"&gt;
</code></pre>

<p>So I'm assuming I should be able to somehow remove the most recently added item somehow.
Any assistance or guidance would be great.</p>
