You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
11
11
@@ -52,7 +52,7 @@ You will receive a confirmation message after a successful upload.
52
52
53
53
:::note
54
54
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.
56
56
57
57
:::
58
58
@@ -69,34 +69,10 @@ Upload complete.
69
69
70
70
You can set the `Content-Type` (MIME type), `Content-Disposition`, `Cache-Control` and other HTTP header metadata through optional flags.
71
71
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
-
95
72
:::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.
99
74
75
+
Use rclone if you wish to upload multiple objects to R2.
0 commit comments