From aa73d1baa6635a822e24da1d2587fe2a442d7b82 Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Tue, 8 Oct 2024 01:23:31 +0800 Subject: [PATCH] last --- 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 032ab98..21fb610 100644 --- a/backend/app/utils.py +++ b/backend/app/utils.py @@ -195,7 +195,7 @@ def validate_file_size_type(file: IO): def upload_file(file_name, bucket_name, object_name=None): - ConnectionUrl = f"https://{settings.AccountID}.r2.cloudflarestorage.com/images" + ConnectionUrl = f"https://{settings.AccountID}.r2.cloudflarestorage.com" r2 = boto3.client( "s3", endpoint_url=ConnectionUrl,