Uploading and downloading files are some of the most common operations for web applications. But let’s face it, as common as they are, they are still challenging features to implement in a reliable and scalable way! This is especially true for serverless environments where you have strict limits in payload size and you cannot have long-running connections. So what’s the solution? If you are using S3, pre-signed URLs can help quite a bit! In this episode of AWS Bites podcast, we are going to learn more about them, and… if you stick until the very end of this episode, we are going to disclose an interesting and quite unknown tip about pre-signed URLs!
In this episode, we mentioned the following resources:
- Documentation for the pre-signed POST: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html
- How to upload files from a frontend app using pre-signed URLs (by Borislav Hadzhiev): https://bobbyhadz.com/blog/aws-s3-presigned-url-react
- Using pre-signed URLs for multi-part uploads: https://www.altostra.com/blog/multipart-uploads-with-s3-presigned-url
- Different architectures and tips for managing uploads to S3 (by Zach Charles): https://zaccharles.medium.com/s3-uploads-proxies-vs-presigned-urls-vs-presigned-posts-9661e2b37932
- Using S3 Object Lambdas to generate and transform S3 files on the fly (By Eoin Shanaghy): https://eoins.medium.com/using-s3-object-lambdas-to-generate-and-transform-on-the-fly-874b0f27fb84
You can listen to AWS Bites wherever you get your podcasts:
- Apple Podcasts: https://podcasts.apple.com/us/podcast/aws-bites/id1585489017
- Spotify: https://open.spotify.com/show/3Lh7PzqBFV6yt5WsTAmO5q
- Google: https://podcasts.google.com/feed/aHR0cHM6Ly9hbmNob3IuZm0vcy82YTMzMTJhMC9wb2RjYXN0L3Jzcw==
- Breaker: https://www.breaker.audio/aws-bites
- RSS: https://anchor.fm/s/6a3312a0/podcast/rss
Do you have any AWS questions you would like us to address? Leave a comment here or connect with us on Twitter: - https://twitter.com/eoins - https://twitter.com/loige