September 14, 2020
Uploading files to AWS S3 with Flask
One way to upload files using Flask is to literally create a route that accepts HTTP POST and saves bytes received on the disk.
And with horizontal scaling you need to mount an external storage to every running instance that supports replication.
Another option is to use object storage - like AWS S3 - and upload files directly from the frontend. In that case Flask will have a route that just generates and URL a frontend will upload to.
Read more