Jun 26, 2022
Today I improved s3 uploads.
The server was crashing during uploads due to running out of memory.
I upgraded the server from 0.5 GB to 1 GB of memory but that didn’t fix the issue.
Because of S3 and web browser restrictions to upload to S3 I have to route the upload via the backend.
The issue most likely was that I was doing everything in memory.
I’ve changed the code to first save the upload to disk and then upload from the file.
So far it seems to be working.