Here is a way to append
file to FormData
:
var data = new FormData();
jQuery.each($('#file')[0].files, function(i, file) {
data.append('file-'+i, file);
});
is it possible to do as below ?
data[i].remove();???
or data[i] = file;??
how iIcan remove or modify a value from data
data
in firebug or the Chrome console, if you can. – Counterclaim