I\'m trying to use input file with multiple attribute and to have the formData split so I would have a formData isnatce for each file in the multiple file eleme
multiple
Each time you make a formData object you can append to it data like this:
data.append("file", document.getElementById(file).files[0]);
but instead of 0 in for loop you can put loop index and send data to ajax.
and you should initialize data by following :
var data = new FormData();