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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…