Software developer intern @Aerchain || OCR || AWS || NEXT.Js | React.Js | Node.Js | Express.Js | MongoDb | Firebase Docker | SIH'23 | Citronics'24 Runner Ups
🚀 How Pre-signed URLs Work with S3 🚀 If you've ever needed to securely upload files to Amazon S3 from a client-side application without exposing your AWS credentials, pre-signed URLs are the perfect solution! Here's a quick rundown on how they work: What is a Pre-signed URL? A pre-signed URL is a temporary, signed URL generated by your server that allows users to upload (or download) files directly to/from S3 without requiring direct access to your S3 bucket. How it Works: You make a request to your backend with the filename and content type (like image/jpeg). Your backend generates a pre-signed URL using AWS SDK (valid for a limited time, say 15 minutes). The client uploads the file directly to the S3 bucket using the pre-signed URL, bypassing the need for exposing credentials. Why Use It? Security: Your AWS credentials stay safe on the backend. Efficiency: No need to route large files through your backend server. Flexibility: You can limit access and set expiration times on the URL, adding an extra layer of control. Aishwary Shrivastava Nishit Hirani #AWS #S3