Home
Software
Writings
Day 18: improving s3 upload
in: Diary of a solo dev building a web app
Jun 26, 2022
💡
This is a dev diary of implementing Filerion, a web-based file manager for online storage (Dropbox, OneDrive, Google Drive, s3 and more).
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.
Written on Jun 26 2022.
home
Found a mistake, have a comment? Let me know.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you: