Skip to content

This is the simple code for how upload image on S3 bucket using multer and aws sdk.

Notifications You must be signed in to change notification settings

lushiv/multer-s3-file-uploader-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

This is the simple code for how upload image on S3 bucket using multer and aws sdk.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published