Node.js TypeError:FormData.append:参数2未实现接口Blob
我正在尝试使用Reactjs和Nodejs上传excel文件。Nodejs代码在postman中运行良好,但在此处添加url时,它不起作用Node.js TypeError:FormData.append:参数2未实现接口Blob,node.js,reactjs,api,axios,Node.js,Reactjs,Api,Axios,我正在尝试使用Reactjs和Nodejs上传excel文件。Nodejs代码在postman中运行良好,但在此处添加url时,它不起作用 App/this.fileUploadHandler src/App/App.js:33 30 | 31 | //FileName = event.target.files[0].name 32 | const fd = new FormData(); > 33 | fd.append('excel', this.state.selec
App/this.fileUploadHandler
src/App/App.js:33
30 |
31 | //FileName = event.target.files[0].name
32 | const fd = new FormData();
> 33 | fd.append('excel', this.state.selectedFile, this.state.selectedFile.name);
| ^ 34 | axios.post('http://localhost:4000/upload', fd)
35 | .then(res => {
36 | console.log(res)