I am using ajax for multiple image upload functionality. I also display the preview of image before uploading. Now when I select 4 images(image1, image2, image3 and image4) and show the preview of them.
Now if I remove one image from selected but its still exist in : files[0]
How can I clear particular image from files[0].
I am reading these images from temp via using below code:
var reader = new FileReader();
reader.onload = imageIsLoaded;
reader.readAsDataURL(this.files[0]);
console.log(this.files[0]);
I just want to unset one particular image ( image1) from multiple images which I have selected for uploads.
Any help would be appreciative.