From dcf3a1cee365a486ed7b638893d19824ff5c98e3 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sat, 15 Jun 2024 23:13:10 +0200 Subject: [PATCH] :bug: Fix S3 upload not working --- classquiz/routers/storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/classquiz/routers/storage.py b/classquiz/routers/storage.py index e20bd02..6f8918a 100644 --- a/classquiz/routers/storage.py +++ b/classquiz/routers/storage.py @@ -137,6 +137,7 @@ async def upload_file( deleted_at=None, alt_text=None, ) + print("File Size:", request.headers.get("Content-Length")) await storage.upload( file_name=file_id.hex, file_data=file.file,