I have code below that runs perfectly and uploads multiple images.
This is the html and jQuery code:
Use this for remove files values and file preview
$(".remove").click(function(){ $(this).parent(".pip").remove(); $('#files').val(""); });`