multer is Express middleware that will be used on any route used to process a file send in the HTTP request's body.
npm install multer
@aws-sdk/client-s3 provides a client used to communicate between Node and AWS's S3 web service.
npm install @aws-sdk/client-s3
More Info: AWS SDK Version 3 for JavaScript Developer Guide
- src/pages/App/App.jsx
- src/utilities/photo-api.js
- routes/api/photos.js (note the multer middleware on the route)
- controllers/api/photos.js
- config/upload-file.js