Skip to content

Gurenax/node-aws-s3-fileupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Express AWS S3 File Upload

A simple file uploader using multer and aws-sdk

Routes

POST /upload

  • Handles a file upload form
  • Example html:
<html>
  <body>
    <form ref='uploadForm' 
      id='uploadForm' 
      action='http://localhost:7000/upload' 
      method='post' 
      encType="multipart/form-data">
        <input type="file" name="inputFile" multiple />
        <input type='submit' value='Upload!' />
    </form>     
  </body>
</html>

Create .env file and provide values for the following:

AWS_S3_BUCKET = 
AWS_ACCESS_KEY_ID = 
AWS_SECRET_ACCESS_KEY = 
AWS_DEFAULT_REGION = 

References

AWS S3 Official Docs

Multer S3

AWS S3 Bucket with NodeJS

About

A simple file uploader using multer and aws-sdk

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published