I have selected some files in multiple files selection (input type=file) and previewing the images with a remove button.
When clicking the remove button, I need to remove the file from multiple selection.
Is there anyway to do that?
I have tried the code below but the input file unselect all files, and I need to unselect only one
var file = document.getElementById("imgsel");
file.value = file.defaultValue;
For the following input:
<input type="file" id="imgsel" name="files[]" multiple="multiple">