Great Article , But I think saving the url of the image will be clean and better way of using it .
- Get the image from client
- Make some changes in naming / compress it (or use any third party to compress)
- Save images in S3 using multer , it will return image url
- Save image url in mongoDB