Storage layer used for storing files in Cloudflare R2, as opposed to Bytescale's built-in storage.
This is a read/write storage layer.
{ }, },}
{ "bucket": { "bucketName": "my-bucket", "objectKeyPrefix": "an/example/key" }, "cloudflareAccountId": "4137fa2e8211774677c5b708463dcb1a", "credentials": { "r2AccessKey": "AKIAIOSFODNN7EXAMPLE", "r2SecretKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" }, "type": "R2", "useAbsolutePaths": true}
Cloudflare Account ID.
Example: "4137fa2e8211774677c5b708463dcb1a"
Type: String
Min Length: 1
Max Length: 64
Required: Yes
AWS Access Key.
Example: "AKIAIOSFODNN7EXAMPLE"
Type: String
Min Length: 16
Max Length: 128
Required: Yes
AWS Secret Access Key.
Example: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
Type: String
Min Length: 30
Max Length: 128
Required: Yes
The type of this storage layer.
Type: String
Value: "R2"
Required: Yes
If true then writes Google Storage objects with full filePath as key, prefixed with the objectKeyPrefix.
If false then writes Google Storage objects using a relative filePath in relation to folder's path, prefixed with the objectKeyPrefix.
Type: Boolean
Required: Yes
This website uses cookies. By continuing you are consenting to the use of cookies per our cookie policy.
This website requires a modern web browser -- the latest versions of these browsers are supported: