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 <input/> 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...