I want to store list of images and video files store in list in java script. I used formData.append()
method, to store files with key. It is stored properly.
But in between I am not able to delete the file using key from formData
.
So I need another solution for this problem.
Code:
var file = $("#pictureUrl")[0].files[0];
formdata.append(index + "p", file);
var vfile = $("#videofile")[0].files[0];
formdata.append(index + "v", vfile);
Delete Code :
var key=id+"v";
formdata.delete(key);