【发布时间】:2015-10-19 05:08:50
【问题描述】:
我正在使用"multer": "^1.0.6", 我想将图像保存在上传文件夹中。
我的代码是
app.post('/post', multer({dest: './uploads/'}).single('file'), function (req, res) {
response = {
message: 'File uploaded successfully',
filename: req.file.filename
};
res.end(JSON.stringify(response));
});
但我在上传文件夹8e6e425f8756e0bafb40ed1a3cb86964中有同名文件
为什么我的这个名字没有 mimetype?
【问题讨论】: