如果我仍然保留此代码,则程序仍在运行,我的图像将正常上传到后端
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