Storage Providers
tagd-ai supports multiple storage providers for your file attachments. Configure external storage for more control and flexibility.
Default Storage
By default, files are stored on tagd-ai's infrastructure:
- Automatic optimization
- CDN distribution
- No configuration needed
- Included in storage limits
Supported Providers
Cloudflare R2
Object storage with no egress fees.
Benefits:
- No egress charges
- S3-compatible API
- Global distribution
Setup:
- Create R2 bucket in Cloudflare dashboard
- Generate API credentials
- In tagd-ai: Settings → Storage → Add Provider
- Enter credentials:
- Account ID
- Access Key ID
- Secret Access Key
- Bucket name
AWS S3
Industry-standard object storage.
Benefits:
- Proven reliability
- Extensive features
- IAM integration
Setup:
- Create S3 bucket in AWS
- Create IAM user with S3 access
- In tagd-ai: Settings → Storage → Add Provider
- Enter credentials:
- Access Key ID
- Secret Access Key
- Bucket name
- Region
IAM Policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::your-bucket/*"
}
]
}
Backblaze B2
Cost-effective object storage.
Benefits:
- Low cost
- Simple pricing
- S3-compatible
Setup:
- Create B2 bucket
- Generate application key
- In tagd-ai: Settings → Storage → Add Provider
- Enter:
- Application Key ID
- Application Key
- Bucket name
- Endpoint URL
Configuring Providers
Add New Provider
- Go to Settings → Storage
- Click Add Provider
- Select provider type
- Enter credentials
- Test connection
- Save
Set Default Provider
Choose where new uploads go:
- Go to Settings → Storage
- Find provider
- Click Set as Default
Provider Priority
Configure fallback order:
- Primary provider for new uploads
- Fallback if primary fails
- Keep original in tagd-ai storage as backup
Migrating Files
To External Provider
Move existing files to external storage:
- Go to Settings → Storage
- Click Migrate Files
- Select source (tagd-ai storage)
- Select destination provider
- Choose tags/files to migrate
- Start migration
From External Provider
Return files to tagd-ai:
- Go to Settings → Storage
- Click Migrate Files
- Select external source
- Choose destination
- Start migration
Costs and Billing
What tagd-ai Charges
- Storage management features
- Not the actual storage space
What Providers Charge
- Storage space used
- Data transfer (varies by provider)
- API requests
- Check provider pricing
Cost Comparison
| Provider | Storage | Egress |
|---|---|---|
| tagd-ai | Included in plan | Included |
| Cloudflare R2 | $0.015/GB | Free |
| AWS S3 | $0.023/GB | $0.09/GB |
| Backblaze B2 | $0.006/GB | $0.01/GB |
Best Practices
Security
- Use least-privilege credentials
- Rotate keys regularly
- Enable bucket encryption
- Restrict bucket access
Performance
- Choose provider near your users
- Enable CDN when available
- Configure appropriate caching
Reliability
- Enable versioning
- Configure backups
- Test regularly
Troubleshooting
Connection Failed
- Verify credentials are correct
- Check bucket exists
- Verify permissions
- Check network/firewall
Upload Errors
- Check storage quota
- Verify file size limits
- Check bucket policy
Files Not Loading
- Verify bucket is public or signed URLs work
- Check CORS configuration
- Verify CDN configuration