Actions17
- Bucket Actions
- Object Actions
- Batch Operations Actions
Batch Operations → Upload Multiple
AI-generatedSummary
Upload multiple files to an R2 bucket
Inputs
- bucketName (required) — The name of the R2 bucket to operate on.
Output shape
an array of result objects
Each element reports success or failure of the batch upload, including any error details.
Examples
Example 1: Upload a set of images to a bucket
resource=batch, operation=uploadMultiple, bucketName=my-photos, dataSource=binaryData, file list provided via input
Example 2: Delete temporary files in bulk
resource=batch, operation=deleteMultiple, bucketName=temp-files, objectKeys=tmp1.txt\n tmp2.log\n cache.zip
Example 3: Download many reports at once
resource=batch, operation=downloadMultiple, bucketName=reports, objectKeys=report-2024.pdf\n summary.docx\n data.csv