New ask Hacker News story: Ask HN: What is the best way to Upload Images to AWS S3?

Ask HN: What is the best way to Upload Images to AWS S3?
3 by fuadnafiz98 | 3 comments on Hacker News.
I am building a full stack Nodejs, Express.js and React application with a file upload functionality. What will be the best approach to upload the file? 1. Upload the file from frontend to S3? 2. First upload the file to backend and then upload the file from backend to S3? What will be the best option? In my opinion the first approach is better as it doesn't require extra load on backend if the file is larger, but I am not sure about the security issues to keep the AWS credentials in the frontend code. Any suggestions are welcome :)

Comments

Popular posts from this blog

New ask Hacker News story: Tell HN: Equifax free credit report dark patterns

New ask Hacker News story: Ask HN: Why can't the US government run their own social media?