From 411bfa520f517f3c83ed9f8a2e8c5961065efae6 Mon Sep 17 00:00:00 2001 From: KonstantAnxiety Date: Thu, 19 Dec 2024 15:15:18 +0300 Subject: [PATCH] update comments --- .../dl_file_uploader_api_lib/views/files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dl_file_uploader_api_lib/dl_file_uploader_api_lib/views/files.py b/lib/dl_file_uploader_api_lib/dl_file_uploader_api_lib/views/files.py index 7b057c700..eeea0c7c0 100644 --- a/lib/dl_file_uploader_api_lib/dl_file_uploader_api_lib/views/files.py +++ b/lib/dl_file_uploader_api_lib/dl_file_uploader_api_lib/views/files.py @@ -141,9 +141,9 @@ async def post(self) -> web.StreamResponse: url = await s3.client.generate_presigned_post( Bucket=s3.tmp_bucket_name, Key=s3_key, - ExpiresIn=60 * 60, # 1 hour # TODO config? + ExpiresIn=60 * 60, # 1 hour Conditions=[ - ["content-length-range", 1, 200 * 1024 * 1024], # 1B .. 200MB # TODO use constant + ["content-length-range", 1, 200 * 1024 * 1024], # 1B .. 200MB # TODO use constant from DataSink {"Content-MD5": content_md5}, ], )