Necessary for handling data files. It’s basically middleware and mainly use for uploading files.
It will help to upload files to AWS S3.
Needed for configuration, when to work with AWS
npm install --save multer multer-s3 aws-sdk
Or
npm install express body-parser aws-sdk multer multer-s3.
aws.config.update({
secretAccessKey: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
accessKeyId: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
region: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx'
});
bucket: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXx'