This commit is contained in:
Philip Cheung 2024-10-08 01:23:31 +08:00
parent ca99f9f1fb
commit aa73d1baa6
1 changed files with 1 additions and 1 deletions

View File

@ -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,