Use your own Cloudflare R2 storage with HeftySend for better control and cost savings
• Go to your Cloudflare Dashboard
• Click "R2 Object Storage" in the sidebar
• Click "Create bucket" and give it a name
• Choose a location
• 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
}
]• 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
• 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
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:
Choose the region code that matches your bucket location:
| Region Code | Location |
|---|---|
| wnam | Western North America |
| enam | Eastern North America |
| weur | Western Europe |
| eeur | Eastern Europe |
| apac | Asia-Pacific |
7. Click "Test Connection" then "Save"
Pay only for what you use with transparent R2 pricing
Complete control over your files and security
Cloudflare's worldwide network for speed
Handle any amount of files without limits
Your HeftySend is now connected to your R2 bucket. Ready to explore more tutorials?