I've been exploring the topic of upload sessions, and I still have a lot of questions.
I've observed how some websites implement upload sessions, such as Mangadex, in the following way:
My questions:
Can I handle the file upload process from the client to S3 without an intermediary server that generates a file ID, or must I pass the file through an intermediary to generate the file ID?
If I must pass to the server to generate file IDs, how can I scale when it can handle up to 1000 images per minute? My VPS has 4GB of RAM.
The process above is only my assumption. If it is wrong, please provide me with the correct way to implement a file upload session.
You could use presignedURL to do that:
You maybe ask about the file information (size, metadata,... ) You could get that information and send to server in the first request. It means you will send the file information in the request which send back the presignedURL. At that process, you could verify something such as:
Note:
I hope my idea could help you