Skip to content

Examples of uploading to S3 using presigned URLs and presigned POST.

License

Notifications You must be signed in to change notification settings

zaccharles/presigned-s3-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

About

Examples of uploading to S3 using presigned URLs and presigned POST.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published