Back to articles
Upload Large Folders to Cloudflare R2
How-ToTools

Upload Large Folders to Cloudflare R2

via Dev.toEsther

Cloudflare R2 object storage has a limitation: the web interface only allows uploading folders containing fewer than 100 files. To upload folders with more than 100 files, you typically need to set up Cloudflare Workers or use the S3 API with custom code. Rclone makes this process easy. Step 1 - Install Rclone Rclone ↗ is a command-line tool for managing files on cloud storage. Rclone works well for uploading multiple files from your local machine or copying data from other cloud storage providers. brew install rclone Windows: Download the installer from rclone.org/install/#windows Step 2 - Create Cloudflare API Keys From your Cloudflare R2 dashboard, click the Manage button. Create a new user API token: Enter a Token Name (e.g. r2-upload-token ) For Permission , select Object Read & Write Under Specify buckets , choose the bucket(s) you want to allow access to or allow all. After creation, you will receive: Access Key ID, Secret Access Token, Endpoint (e.g., https://.r2.cloudflarestor

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles