vue小白一枚~
<el-upload action="" :http-request="handlePost">
handlePost(file) {
var files=file.file;
var fd = new FormData();
fd.append('file', files);
postUpload(fd).then(response => {
console.log(response);
})
},
前端vue,传图片用formdata,获取到的是

因为没接触过,所以不知道这样的是对还是错?
后端.net core api 接口接收用的是IFormFile
[HttpPost]
public IActionResult UpLoadImg([FromForm] IFormFile files)
{}
但我在swagger中查看发现有好多参数

请问是需要对后端的每个参数在前端进行赋值还是前端那个(binary)已经都包含了?如果不是字段属性匹配不上,前端为什么又是找不到后端接口呢?
感谢各位大神帮助~