Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zaccharles/presigned-s3-upload
Examples of uploading to S3 using presigned URLs and presigned POST.
https://github.com/zaccharles/presigned-s3-upload
Last synced: about 1 month ago
JSON representation
Examples of uploading to S3 using presigned URLs and presigned POST.
- Host: GitHub
- URL: https://github.com/zaccharles/presigned-s3-upload
- Owner: zaccharles
- License: mit
- Created: 2020-04-12T21:17:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T02:04:29.000Z (about 2 years ago)
- Last Synced: 2024-12-06T17:14:46.103Z (about 2 months ago)
- Language: JavaScript
- Size: 1.26 MB
- Stars: 59
- Watchers: 4
- Forks: 13
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# presigned-s3-upload
Examples of uploading to S3 using presigned URLs and presigned POST.This repo has an accompanying blog post: [S3 Uploads - Proxies vs Presigned URLs vs Presigned POSTs](https://medium.com/@zaccharles/9661e2b37932).
## Backend
Run `npm install` then `serverless deploy` in the `backend` directory.This will create an S3 bucket, two Lambda functions, and an API Gateway REST API.
Focus on `post-signer.js` and `url-signer.js`.
## Frontend
Open `client.html` in the `frontend` directory.Replace the example URL with the one from your deployed backend.
Focus on `presigned-post.js` and `presigned-url.js`.