From 9c9a6d4ba1af67d22b9f1682a4a96575e69bb5a5 Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Tue, 8 Oct 2024 00:50:40 +0800 Subject: [PATCH] added --- 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 faad110..03e9194 100644 --- a/backend/app/utils.py +++ b/backend/app/utils.py @@ -242,7 +242,7 @@ async def save_picture(file, folder_name: str = "", file_name: str = None): # img.thumbnail(output_size) img.save(picture_path) - ConnectionUrl = f"https://{settings.AccountID}.r2.cloudflarestorage.com" + ConnectionUrl = f"https://{settings.AccountID}.r2.cloudflarestorage.com/images" S3Connect = boto3.client( "s3", endpoint_url=ConnectionUrl,