Skip to content

Commit 5b27d76

Browse files
committed
Adding a partial file to direct users to WB API
1 parent 60259a9 commit 5b27d76

File tree

7 files changed

+27
-4
lines changed

7 files changed

+27
-4
lines changed

src/content/docs/r2/get-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ You will receive a confirmation message after a successful upload.
5757

5858
Cloudflare provides multiple ways for developers to access their R2 buckets:
5959

60-
- [Workers Runtime API](/r2/api/workers/workers-api-usage/)
60+
- [R2 Workers Binding API](/r2/api/workers/workers-api-usage/)
6161
- [S3 API compatibility](/r2/api/s3/api/)
6262
- [Public buckets](/r2/buckets/public-buckets/)

src/content/docs/r2/objects/delete-objects.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ sidebar:
55
order: 3
66
---
77

8+
import { Render } from "~/components";
9+
810
You can delete objects from your bucket from the Cloudflare dashboard or using the Wrangler.
911

1012
## Delete objects via the Cloudflare dashboard
@@ -36,3 +38,5 @@ wrangler r2 object delete test-bucket/foo.png
3638
Deleting object "foo.png" from bucket "test-bucket".
3739
Delete complete.
3840
```
41+
42+
<Render file="link-to-workers-r2-api" product="r2"/>

src/content/docs/r2/objects/download-objects.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ sidebar:
55
order: 2
66
---
77

8+
import { Render } from "~/components";
9+
810
You can download objects from your bucket from the Cloudflare dashboard or using the Wrangler.
911

1012
## Download objects via the Cloudflare dashboard
@@ -30,3 +32,5 @@ Download complete.
3032
```
3133

3234
The file will be downloaded into the current working directory. You can also use the `--file` flag to set a new name for the object as it is downloaded, and the `--pipe` flag to pipe the download to standard output (stdout).
35+
36+
<Render file="link-to-workers-r2-api" product="r2"/>

src/content/docs/r2/objects/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ sidebar:
66

77
---
88

9-
import { DirectoryListing } from "~/components"
9+
import { DirectoryListing, Render } from "~/components"
1010

1111
Objects are individual files or data that you store in an R2 bucket.
1212

1313
<DirectoryListing />
14+
15+
<Render file="link-to-workers-r2-api" product="r2"/>

src/content/docs/r2/objects/multipart-objects.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar:
66

77
---
88

9+
import { Render } from "~/components";
10+
911
R2 supports [S3 API's Multipart Upload](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html) with some limitations.
1012

1113
## Limitations
@@ -34,3 +36,5 @@ Note that the binary MD5 sums themselves are concatenated and then summed, not t
3436
echo -n $(echo -n bce6bf66aeb76c7040fdd5f4eccb78e6 | xxd -r -p -)\
3537
$(echo -n 8165449fc15bbf43d3b674595cbcc406 | xxd -r -p -) | md5sum
3638
```
39+
40+
<Render file="link-to-workers-r2-api" product="r2"/>

src/content/docs/r2/objects/upload-objects.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 1
66
---
77

8-
import { Steps, Tabs, TabItem } from "~/components"
8+
import { Steps, Tabs, TabItem, Render } from "~/components"
99

1010
You can upload objects to your bucket from using API (both [Workers Binding API](/r2/api/workers/workers-api-reference/) or [compatible S3 API](/r2/api/s3/api/)), rclone, Cloudflare dashboard, or Wrangler.
1111

@@ -71,4 +71,6 @@ You can set the `Content-Type` (MIME type), `Content-Disposition`, `Cache-Contro
7171
Wrangler's `object put` command only allows you to upload one object at a time.
7272

7373
Use rclone if you wish to upload multiple objects to R2.
74-
:::
74+
:::
75+
76+
<Render file="link-to-workers-r2-api" product="r2"/>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
{}
3+
---
4+
5+
## Other resources
6+
7+
For information on R2 Workers Binding API, refer to [R2 Workers API reference](/r2/api/workers/workers-api-reference/).

0 commit comments

Comments
 (0)