last
This commit is contained in:
parent
ca99f9f1fb
commit
aa73d1baa6
|
@ -195,7 +195,7 @@ def validate_file_size_type(file: IO):
|
||||||
|
|
||||||
|
|
||||||
def upload_file(file_name, bucket_name, object_name=None):
|
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(
|
r2 = boto3.client(
|
||||||
"s3",
|
"s3",
|
||||||
endpoint_url=ConnectionUrl,
|
endpoint_url=ConnectionUrl,
|
||||||
|
|
Loading…
Reference in New Issue