首先用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);
將多個上傳文件append到FormData中時出現問題
慕的地6264312
2019-03-29 06:10:45