multer上传错误error: unexpected end of form

原因:在使用multer上传前先使用了multiparty解析了req,可能是multiparty修改了req结构。

解决方案:移除multiparty。拆分成两个接口。

你可能感兴趣的:(express)