DEV Community

Cover image for How to use AWS S3 pre-signed URLs to upload and download files

How to use AWS S3 pre-signed URLs to upload and download files

Sohail SJ | TheZenLabs on March 18, 2024

So, this month we landed a new client for whom we must keep track of distributor's and doctor's orders and sales. The client had a requirement to k...
Collapse
 
thesohailjafri profile image
Sohail SJ | TheZenLabs

Damn, thank you, I really mean it. Thats a lot to take but I will study one by one on the points you mentioned and try to improve my practice in existing and upcoming projects 🤝🙌😬

Collapse
 
thesohailjafri profile image
Sohail SJ | TheZenLabs

During the production setup mostly the API routes stay under the auth middleware but I guess I can move the entire logic on the server which will take a single/multiple files and return the uploaded paths to keep it modular this I don't compose my bucket in any way

Collapse
 
leewynne profile image
Lee

Nice share! 🙌

Collapse
 
thesohailjafri profile image
Sohail SJ | TheZenLabs

Thanks lee

Collapse
 
mrhiden profile image
Marek Krzyżowski • Edited

@manchicken
1) So how should I store them? How do you store them?

 
mrhiden profile image
Marek Krzyżowski

Thnks. It is not my decision to use S3.

 
thesohailjafri profile image
Sohail SJ | TheZenLabs

Okay understood, I will try to practice using okta or Auth0 for future projects

Thread Thread
 
leewynne profile image
Lee

Wholesome exchange right here.... Love this community 🙌

Collapse
 
therahulchaurasia profile image
Rahul Chaurasia

I read multiple articles related to aws signed urls and I would say that this one pieces them togehter.
Good read!

Collapse
 
thesohailjafri profile image
Sohail SJ | TheZenLabs

Thanks brother, I will try to update the article with more details on security

Collapse
 
pratham_2203 profile image
Prathamesh Ethiraj

Best article ever i went through 💯

Collapse
 
sahilchaubey profile image
sahilchaubey03

Great article bother..... Helped me a lot