Data Types

R2StorageWithoutCredentials

The same data structure as R2Storage, but with all Cloudflare credentials removed.

{
"bucketName": String,
},
"type": String,
}
{
"bucket": {
"bucketName": "my-bucket",
"objectKeyPrefix": "an/example/key"
},
"cloudflareAccountId": "4137fa2e8211774677c5b708463dcb1a",
"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

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: