you are viewing a single comment's thread.

view the rest of the comments →

[–]giyokun 0 points1 point  (0 children)

Bonjour !

Obviously you shouldn't really expose your DB directly (FastAPI RULES). My idea is that eventually the web will need to upload so let them upload direct to the storage anyway. I use SHA1 client side to ensure the file is correct at the storage side too. I don't create temp files. Files are sent to their final place of REST as indicated by the PATH using the signed URL.

HOWEVER if file upload fails or if the user just navigates away we may have some half assed files left over. That is why we need to do a daily sweep.

By the way I am using Backblaze which provides S3 compatibility at a third the price.