HNHacker News
TopNewBestAskShowJobs

matusgallik008

62 karma · joined April 26, 2023

submissionscomments
matusgallik008··on Ask HN: How to handle user file uploads?
You're good mate. I meant exaclty what aprilnya said. I thought you are using the Lambda just to validate the 10mb limit - and just for that you don't need the lambda :) and could save yourself some cents & effort.

But if you do resizing as well, then ofc you need the Lambda (or some other compute engine).

matusgallik008··on Ask HN: How to handle user file uploads?
Well, security for starts. Having user A upload a malicious_file.png and then user B download it would not be ideal. Secondly, UX - having thumbnails for files can increase the loading speed. Arguably not the most important UX feature, but we have the resources to spend on this, so why not.
matusgallik008··on Ask HN: How to handle user file uploads?
I believe AWS S3 allows setting the Content-Length header as well. So you might not need the lambda
matusgallik008··on Ask HN: How to handle user file uploads?
Thanks for the insights! I had a look at ClamAV - never heard/worked with it. This was something I was looking for.

Do you also handle large files e.g. videos with lambda? Don't you struggle with Lambda limits then?