JavaScript delete File from FileList to be uploaded
<p>There is the code <a href="https://jsfiddle.net/bfzmm1hc/1" rel="nofollow noreferrer">https://jsfiddle.net/bfzmm1hc/1</a> Everything looks fine but I want to delete some of the files from the set.</p>

<p>I have already found these:</p>

<ul>
<li><a href="https://stackoverflow.com/questions/19060378/how-to-remove-one-specific-selected-file-from-input-file-control">How to remove one specific selected file from input file control</a></li>
<li><a href="https://stackoverflow.com/questions/19666064/input-type-file-multiple-delete-items">input type=file multiple, delete items</a></li>
</ul>

<p>I know that <code>FileList</code> object is readonly, so I can just copy the files to a new array. But what should I do with this new array of <code>File</code> objects? I can't assign it to the <code>files</code> property...</p>