标签:field input single expect round nbsp 时报 cte 上传
1.在node后端使用express中的multer中间件来实现文件上传时报错
node multer 报错Unexpected field
1 var express=require(‘express‘); 2 3 var router=express.Router(); 4 5 var upload=require(‘...‘)
router.post(‘/upload‘,upload.single(‘fileid‘));
原因:upload.single()里面的参数fileid需要和前端from表单中input输入框的name属性的值保持一致
标签:field input single expect round nbsp 时报 cte 上传
原文地址:https://www.cnblogs.com/suihang/p/9847735.html