Spaces:
Running
on
Zero
Running
on
Zero
liuyang
commited on
Commit
·
24dd7ba
1
Parent(s):
d5d2af9
disable checksum
Browse files
app.py
CHANGED
@@ -82,7 +82,9 @@ def upload_data_to_r2(data, bucket_name, object_name, content_type='application/
|
|
82 |
endpoint_url=f'https://{S3_ENDPOINT}',
|
83 |
aws_access_key_id=S3_ACCESS_KEY,
|
84 |
aws_secret_access_key=S3_SECRET_KEY,
|
85 |
-
config = Config(s3={"addressing_style": "virtual"}, signature_version='v4'
|
|
|
|
|
86 |
)
|
87 |
|
88 |
# Upload the data to R2 bucket
|
|
|
82 |
endpoint_url=f'https://{S3_ENDPOINT}',
|
83 |
aws_access_key_id=S3_ACCESS_KEY,
|
84 |
aws_secret_access_key=S3_SECRET_KEY,
|
85 |
+
config = Config(s3={"addressing_style": "virtual", 'payload_signing_enabled': False}, signature_version='v4',
|
86 |
+
request_checksum_calculation='when_required',
|
87 |
+
response_checksum_validation='when_required',),
|
88 |
)
|
89 |
|
90 |
# Upload the data to R2 bucket
|