首先用elementUI的上传组件将文件分别保存到form.picFile和form.corFile中,然后在提交的时候先new一个FormData对象,再将文件append进去,但是发送的数据中只有一个文件。请问是什么原因?
this.param = new FormData();
this.param.append('files', this.form.picFile, this.form.picFile.fileName);
this.param.append('files', this.form.corFile, this.form.corFile.fileName);
多文件上传要这么写