How to upload images to GCS bucket with multer and NodeJS?
问题 I'm facing issues for uploading local images to my google cloud storage. I've already tried two methods. The first one is uploading with multer var storage = multer.diskStorage({ destination: (req, file, cb) => { cb(null, './uploads/') }, filename: (req, file, cb) => { cb(null, file.fieldname + '-' + Date.now()) } }); var upload = multer({storage: storage}).single('image'); app.post('/upload',function(req,res,next){ upload(req,res,(err) => { if(err){ console.log(err) }else{ console.log(req