From 55202c06f7d63e7a5ee3343c41ffaa8820203db9 Mon Sep 17 00:00:00 2001 From: Niraj Adhikari Date: Wed, 18 Sep 2024 18:01:40 +0545 Subject: [PATCH] fix: function to put file to s3 --- src/backend/app/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/s3.py b/src/backend/app/s3.py index 87e891c9..0e5c82af 100644 --- a/src/backend/app/s3.py +++ b/src/backend/app/s3.py @@ -52,7 +52,7 @@ def add_file_to_bucket(bucket_name: str, file_path: str, s3_path: str): s3_path = f"/{s3_path}" client = s3_client() - client.fput_object(bucket_name, file_path, s3_path) + client.fput_object(bucket_name, s3_path, file_path) def add_obj_to_bucket(