无法将用户保存到mongodb

时间:2019-12-05 17:10:26

标签: mongodb express multer

如果我仍然保留此代码,则程序仍在运行,我的图像将正常上传到后端

TypeError: cannot create mpf from 2*x

我开始将用户保存到mongoDB并发生错误

router.post('/admin/register', upload.single('avatar'), async (req, res) => {
// Handle add image by multer
... handel file upload from front-end


return res.json({ avatar: newFullPath });
  }
);
  

我的Github存储库中的该项目:This project in Github

Error shows in console

Error in Network

0 个答案:

没有答案