How to rename my originalname when using multer memoryStorage?
问题 i am trying to rename my file originalname when using multer memoryStorage. I am using multer to upload an array of files and when i console.log(req.files) i get: { fieldname: 'images', originalname: 'snake.jpg', encoding: '7bit', mimetype: 'image/jpeg', buffer: <Buffer ff d8 38134 more bytes>, size: 38184 } The reason i want to rename my originalname is i am storing the images in AWS S3 and if the images have the same name it gets updated not added as a new image. I have tried doing so by