我使用"multer": "^1.0.6",
而我想保存图像在上传文件夹。 我的代码是multer保存图像没有mimetype
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
文件为什么我用这个名字没有MIME类型?