Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 837 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 837 Bytes

Upload Images on AWS S3 Using Node.js

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

Install all via a single command:

npm install --save multer multer-s3 aws-sdk

Or

npm install express body-parser aws-sdk multer multer-s3.

AWS Access Keys

aws.config.update({
  secretAccessKey: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  accessKeyId: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  region: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx'
});

bucket: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXx'