From db607c9cb531344cd1ce4edb4c51008fd22d8402 Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Tue, 8 Oct 2024 10:27:42 +0800 Subject: [PATCH] again --- backend/app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/utils.py b/backend/app/utils.py index 468266f..b28548f 100644 --- a/backend/app/utils.py +++ b/backend/app/utils.py @@ -219,7 +219,7 @@ def delete_file(file_name, bucket_name, object_name=None): if object_name is None: object_name = file_name try: - r2.delete_object(Bucket=bucket_name, Key=object_name) + r2.delete_object(bucket_name, file_name) except ClientError as e: print(f"An error occurred: {e}") return False