我使用"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類型?