How Can I Set Uploaded File Name?
By using 'multer' , I made it to request image file like this. And this file is stored at 'uploads' folder I set. my code is below: var multer = require('multer') var upload = mu
Solution 1:
I think your problem is in the definition of the destination dir. The starting '.' is missing. Try to use this code:
destination: function (req, file, cb) {
cb(null, './uploads/');
},
Post a Comment for "How Can I Set Uploaded File Name?"