You can either use the S3 compat API or
# r2
s
You can either use the S3-compat API or stream it to R2 via a Worker binding
s
Tried that.
Copy code
Traceback (most recent call last):
  File "awscli/clidriver.py", line 460, in main
  File "awscli/clidriver.py", line 595, in __call__
  File "awscli/clidriver.py", line 798, in __call__
  File "awscli/clidriver.py", line 929, in invoke
  File "awscli/clidriver.py", line 941, in _make_client_call
  File "awscli/botocore/client.py", line 341, in _api_call
  File "awscli/botocore/client.py", line 697, in _make_api_call
botocore.exceptions.ClientError: An error occurred (413) when calling the PutObject operation: Request Entity Too Large

An error occurred (413) when calling the PutObject operation: Request Entity Too Large
s
PutObject has a limit of 5GB, you’ll have to use multipart uploads for your file.
They’re supported in both APIs