1.文件單個(gè)上傳時(shí),看到的數(shù)據(jù)時(shí)時(shí)[object File]形式
const fd = new FormData();
fd.append('FFILES', this.fileList);
console.log(fd.getAll('FFILES'));
image.png
2.解決方法
const fd = new FormData();
this.fileList.forEach(item => fd.append('FFILES', item));
console.log(fd.getAll('FFILES'));