Data Types

R2Storage

Storage layer used for storing files in Cloudflare R2, as opposed to Bytescale's built-in storage.

This is a read/write storage layer.

{
"bucketName": String,
},
"r2AccessKey": String,
"r2SecretKey": String
},
"type": String,
}
{
"bucket": {
"bucketName": "my-bucket",
"objectKeyPrefix": "an/example/key"
},
"cloudflareAccountId": "4137fa2e8211774677c5b708463dcb1a",
"credentials": {
"r2AccessKey": "AKIAIOSFODNN7EXAMPLE",
"r2SecretKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
},
"type": "R2",
"useAbsolutePaths": true
}

AWS S3 Bucket Name.

Example: "my-bucket"

Type: String

Min Length: 1

Max Length: 61

AWS S3 Object Key.

Example: "an/example/key"

Type: String

Min Length: 0

Max Length: 1024

Cloudflare Account ID.

Example: "4137fa2e8211774677c5b708463dcb1a"

Type: String

Min Length: 1

Max Length: 64

AWS Access Key.

Example: "AKIAIOSFODNN7EXAMPLE"

Type: String

Min Length: 16

Max Length: 128

AWS Secret Access Key.

Example: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"

Type: String

Min Length: 30

Max Length: 128

The type of this storage layer.

Type: String

Value: "R2"

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

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: