Live
Black Hat USAAI BusinessBlack Hat AsiaAI BusinessI tested Gemini on Android Auto and now I can't stop talking to it: 5 tasks it nailsZDNet AI🔥 ggml-org/llama.cppGitHub Trending🔥 ollama/ollamaGitHub Trending🔥 sponsors/kepanoGitHub Trending🔥 KeygraphHQ/shannonGitHub Trending🔥 sponsors/abhigyanpatwariGitHub TrendingOpenAI Releases Policy Recommendations for AI AgeBloomberg TechnologyBeware the Magical 2-Person, $1 Billion AI-Driven StartupForrester AI Blog[D] ICML 26 - What to do with the zero follow-up questionsReddit r/MachineLearningStop Writing Mega-Prompts: Use These 5 Anthropic Design Patterns InsteadMedium AIBuilding a Semantic Research Assistant: A Production RAG Pipeline Over 120 arXiv PapersMedium AIBuilding a Multi-Agent Investment PlatformMedium AIBlack Hat USAAI BusinessBlack Hat AsiaAI BusinessI tested Gemini on Android Auto and now I can't stop talking to it: 5 tasks it nailsZDNet AI🔥 ggml-org/llama.cppGitHub Trending🔥 ollama/ollamaGitHub Trending🔥 sponsors/kepanoGitHub Trending🔥 KeygraphHQ/shannonGitHub Trending🔥 sponsors/abhigyanpatwariGitHub TrendingOpenAI Releases Policy Recommendations for AI AgeBloomberg TechnologyBeware the Magical 2-Person, $1 Billion AI-Driven StartupForrester AI Blog[D] ICML 26 - What to do with the zero follow-up questionsReddit r/MachineLearningStop Writing Mega-Prompts: Use These 5 Anthropic Design Patterns InsteadMedium AIBuilding a Semantic Research Assistant: A Production RAG Pipeline Over 120 arXiv PapersMedium AIBuilding a Multi-Agent Investment PlatformMedium AI
AI NEWS HUBbyEIGENVECTOREigenvector

Upload Large Folders to Cloudflare R2

DEV Communityby EstherApril 5, 20262 min read0 views
Source Quiz

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 U

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

Enter fullscreen mode

Exit fullscreen mode

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.cloudflarestorage.com)

⚠️ Save these credentials immediately because you won’t be able to see the secret key again.

Step 3 - Configure Rclone

Run the configuration command:

rclone config

Enter fullscreen mode

Exit fullscreen mode

  • Select new remote

  • Enter name of new remote (you'll use this later)

  • Select storage > 4 (Amazon S3 Compliant Storage Providers)

  • Select provider > 7 (Cloudflare)

  • env_auth > 1 (Enter AWS credentials in the next step)

  • Enter access_key_id

  • Enter secret_access_key

  • Select region - auto (Leave empty or enter 1)

  • Enter endpoint

  • Select No for Edit Advanced Config > n (n for No)

  • Keep this remote > y

  • Quit config > q

Step 4: Upload Your Folder

Use the rclone copy command:

rclone copy -vv :/

Enter fullscreen mode

Exit fullscreen mode

Example:

rclone copy -vv /Users/Dev/project/images my-rclone-remote:images/apparels

Enter fullscreen mode

Exit fullscreen mode

The -vv flag gives verbose output so you can watch the upload progress. rclone also skips any file that has already been uploaded.

Step 5: Verify the Upload

List the bucket and count the files:

rclone ls : | wc -l

Enter fullscreen mode

Exit fullscreen mode

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by Eigenvector · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

More about

interface

Knowledge Map

Knowledge Map
TopicsEntitiesSource
Upload Larg…interfaceDEV Communi…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 217 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Products