HeftySend

Connect Your Cloudflare R2 Bucket

Use your own Cloudflare R2 storage with HeftySend for better control and cost savings

1

Create Your R2 Bucket

• Go to your Cloudflare Dashboard

• Click "R2 Object Storage" in the sidebar

• Click "Create bucket" and give it a name

• Choose a location

2

Set Up CORS

• Click on your bucket → Settings → CORS policy

• Click "Edit CORS policy" and paste this:

[
  {
    "AllowedOrigins": ["*"],
    "AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],
    "AllowedHeaders": ["*"],
    "ExposeHeaders": ["ETag"],
    "MaxAgeSeconds": 3000
  }
]
3

Create API Token

• Go to "Manage R2 API tokens"

• Click "Create API token" → "Custom token"

• Set permissions: Object Read and Object Write

• Set resources: Include → Specific bucket → [your bucket]

• Save the Access Key ID and Secret Access Key

4

Get Your Endpoint

• Find your Account ID in the Cloudflare dashboard sidebar

• Your endpoint is: https://[ACCOUNT_ID].r2.cloudflarestorage.com

• Replace [ACCOUNT_ID] with your actual Account ID

5

Connect to HeftySend

1. Go to Settings → Storage in your HeftySend dashboard

2. Click "Configure S3 Storage"

3. Enter your endpoint URL

4. Enter your Access Key ID and Secret Access Key

5. Enter your bucket name

6. Select your region from the dropdown:

📍 Available Regions

Choose the region code that matches your bucket location:

Region CodeLocation
wnamWestern North America
enamEastern North America
weurWestern Europe
eeurEastern Europe
apacAsia-Pacific

7. Click "Test Connection" then "Save"

Why Use Your Own R2 Bucket?

💰 Save Money

Pay only for what you use with transparent R2 pricing

🔒 Your Data

Complete control over your files and security

⚡ Fast Speeds

Cloudflare's worldwide network for speed

📈 Unlimited Scale

Handle any amount of files without limits

Having Issues?

Connection Failed?

  • • Double-check your Account ID and endpoint URL
  • • Verify your Access Key ID and Secret Access Key
  • • Make sure bucket name matches exactly
  • • Confirm your API token has the right permissions

CORS Errors?

  • • Make sure you copied the CORS policy exactly
  • • Wait 2-3 minutes after updating CORS settings
  • • Check that your domain is in AllowedOrigins

All Set!

Your HeftySend is now connected to your R2 bucket. Ready to explore more tutorials?

HeftySend

Send hefty files fast - simple, fast, and secure.

Features

Company

  • About Us
  • Blog
  • Tutorials
  • Contact

Legal

  • Terms of Service
  • Privacy Policy

© 2025 HeftySend. Based in the Isle of Man.

Built with ❤️ for simple file sharing