element-ui upload组件多文件上传的示例代码

2020-06-16 05:45:21易采站长站整理

$files = $this->request->file(); // 接收到的文件
}

注意


this.uploadForm.append('file[]', file)

这里是接收多文件一定要是数组形式的file[]