Better HN
topnewbestaskshowjobs
Log inSign up

matusgallik008

62 karma · joined Apr 26, 2023 (3y ago) · 6 submissions

Submissions

comment 2y ago · link · parent

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).

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

I believe AWS S3 allows setting the Content-Length header as well. So you might not need the lambda

comment 2y ago · link · parent

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?

5.

Ask HN: How to handle user file uploads?

214 points · by matusgallik008 · 2y ago · 186 comments