Skip to content

Commit fe28ab1

Browse files
authored
Revert "document r2 bulk put (cloudflare#26591)" (cloudflare#26637)
This reverts commit 225f6db.
1 parent 9978316 commit fe28ab1

File tree

1 file changed

+5
-29
lines changed

1 file changed

+5
-29
lines changed

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

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

8-
import { Steps, Tabs, TabItem, Render, DashButton } from "~/components";
8+
import { Steps, Tabs, TabItem, Render, DashButton } 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

@@ -52,7 +52,7 @@ You will receive a confirmation message after a successful upload.
5252

5353
:::note
5454

55-
Wrangler only supports uploading files up to 300 MiB in size. To upload large files, we recommend [rclone](/r2/examples/rclone/) or an [S3-compatible](/r2/api/s3/) tool of your choice.
55+
Wrangler only supports uploading files up to 315MB in size. To upload large files, we recommend [rclone](/r2/examples/rclone/) or an [S3-compatible](/r2/api/s3/) tool of your choice.
5656

5757
:::
5858

@@ -69,34 +69,10 @@ Upload complete.
6969

7070
You can set the `Content-Type` (MIME type), `Content-Disposition`, `Cache-Control` and other HTTP header metadata through optional flags.
7171

72-
You can upload multiple files by running the `bulk put` command with a JSON file that describes the files to upload.
73-
74-
The JSON file should be an array of objects, each containing a `key` and a `file` property. For example, create a file named `files-to-upload.json` with the following content:
75-
76-
```json
77-
[
78-
{
79-
"key": "image1.png",
80-
"file": "/path/to/images/image1.png"
81-
},
82-
{
83-
"key": "image2.png",
84-
"file": "/path/to/images/image2.png"
85-
}
86-
]
87-
```
88-
89-
The path to the JSON list is passed via `--filename`:
90-
91-
```sh
92-
wrangler r2 bulk put test-bucket --filename=files-to-upload.json
93-
```
94-
9572
:::note
96-
`r2 bulk put` does not currently support setting custom metadata for each object. All objects will be uploaded with the metadata passed via the command line.
97-
98-
Each object has a size limit of 300 MiB when using `r2 bulk put`, use `rclone` or other S3-compatible tools to upload larger files.
73+
Wrangler's `object put` command only allows you to upload one object at a time.
9974

75+
Use rclone if you wish to upload multiple objects to R2.
10076
:::
10177

102-
<Render file="link-to-workers-r2-api" product="r2" />
78+
<Render file="link-to-workers-r2-api" product="r2"/>

0 commit comments

Comments
 (0)