Hacker News story: Ask HN: How to handle user file uploads?

Ask HN: How to handle user file uploads?
hey, i work as an SRE for a company where we allow users to upload media files (e.g. profile picture, attach docs or videos to tasks..the usual). We currently just take a S3 pre-signed URL and let the user upload stuff. Occasionally, limits are set on the element for file types. I don't feel this is safe enough. I also feel we could do better by optimizing images on the BE, or creating thumbnails for videos. But then there is the question of cost on AWS side. Anybody have experience with any of this? I imagine having a big team and dedicated services for media processing could work, but what about small teams? All thoughts/discussions are welcome. 3 comments on Hacker News.
hey, i work as an SRE for a company where we allow users to upload media files (e.g. profile picture, attach docs or videos to tasks..the usual). We currently just take a S3 pre-signed URL and let the user upload stuff. Occasionally, limits are set on the element for file types. I don't feel this is safe enough. I also feel we could do better by optimizing images on the BE, or creating thumbnails for videos. But then there is the question of cost on AWS side. Anybody have experience with any of this? I imagine having a big team and dedicated services for media processing could work, but what about small teams? All thoughts/discussions are welcome.

Hacker News story: Ask HN: How to handle user file uploads? Hacker News story: Ask HN: How to handle user file uploads? Reviewed by Tha Kur on May 01, 2024 Rating: 5

No comments:

Powered by Blogger.