const fileStorageEngine = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, "./attachments"); //important this is a direct path fron our current file to storage location
},
filename: (req, file, cb) => {
cb(null,
Date.now() + "--" +file.originalname);
},
});