Docs Ordnary Web Services Ordnary R2
Path-style requests
Why the bucket goes in the path, what the InvalidArgument error means, and how to switch each tool to path-style addressing.
The S3 API accepts path-style requests only: https://s3.ordnary.com/<bucket>/<key>. A request to the bare endpoint without a bucket in the path, or one that put the bucket in the hostname, is refused with InvalidArgument and the message *A bucket name is required in the request path*.
Switch your tool
aws configure set s3.addressing_style pathnew S3Client({ forcePathStyle: true, /* ... */ })Config(s3={"addressing_style": "path"})[r2]
type = s3
provider = Other
endpoint = https://s3.ordnary.com
force_path_style = truehttps://my-bucket.s3.ordnary.com/photos/beach.jpghttps://s3.ordnary.com/my-bucket/photos/beach.jpg