Skip to content

jsphkhan/file-upload-s3

Repository files navigation

This project was bootstrapped with Create React App.

This is a React App that uploads file to a S3 Bucket using S3 SDK

To use AWS services install the "aws-sdk" NPM package

This is not an Ejected App

How to run

  1. To run the app - create a production build npm run build

  2. And then start Node server: node server.js

  3. Or use Docker to run

How it works

React app uploads file to Node server -> Node server uploads to S3

React app runs at localhost:8081 (production build) React app makes POST call to /upload Node server handles POST call and uploads to S3

Better technique

Since we are uploading the file first to Node and Node uploads to S3 So the Node server is consuming resources. Rather directly upload files to S3 from client.

https://medium.com/@khelif96/uploading-files-from-a-react-app-to-aws-s3-the-right-way-541dd6be689 https://www.koan.co/blog/uploading-images-to-s3-from-a-react-spa

Author

License

This project is licensed under the MIT License

About

React app that uploads files to AWS S3 bucket using Node server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published