This commit is contained in:
Philip Cheung 2024-10-08 00:56:30 +08:00
parent 9c9a6d4ba1
commit 990fc6c214
1 changed files with 1 additions and 1 deletions

View File

@ -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/images"
ConnectionUrl = f"https://{settings.AccountID}.r2.cloudflarestorage.com"
S3Connect = boto3.client(
"s3",
endpoint_url=ConnectionUrl,