Setting Up Backblaze
Connect Media Cloud to Backblaze B2 using the S3-compatible API, a bucket-scoped application key and path-style requests.
Support for Backblaze’s native B2 API is deprecated. Use the Backblaze S3 Compatible provider in Media Cloud instead.
Before you start
You need:
- A Backblaze account with a B2 bucket.
- An application key with read, write, and delete access to the bucket.
- The bucket’s S3 endpoint.
- A bucket privacy setting that matches what you configure in Media Cloud.
Step 1 – Create a bucket
In the Backblaze web console, open B2 Cloud Storage → Buckets and create a bucket. Choose Public if Media Cloud should serve files from public URLs. Choose Private if you will use pre-signed URLs.
Step 2 – Create an application key
- Open Application Keys.
- Create a key scoped to the bucket.
- Grant read, write, and delete access.
- Copy the keyID and applicationKey. The application key is only shown once.
Step 3 – Find the S3 endpoint
The S3 endpoint uses the bucket’s region, for example:
s3.us-west-004.backblazeb2.com
Use the endpoint shown in the bucket details, without https://.
Step 4 – Configure Media Cloud
- Go to Media Cloud → Settings → Cloud Storage.
- Set Storage Provider to Backblaze S3 Compatible.
- Fill in the provider settings:
| Field | Value |
|---|---|
| Access Key | Backblaze keyID |
| Secret | Backblaze applicationKey |
| Bucket | Bucket name |
| Bucket Privacy | Public or Private, matching the bucket |
| Custom Endpoint | s3.<region>.backblazeb2.com |
| Path Style Endpoint | On |
- Turn on Enable Cloud Storage.
- Save and run Media Cloud → System Compatibility.
Upload handling
- Bucket Privacy must match the bucket’s actual privacy. A mismatch causes uploads to fail or files to be unreadable.
- Cache Control and Content Expiration set cache metadata.
- The Backblaze S3 driver does not support per-file ACL updates, so set privacy at the bucket level.
- Pre-signed URLs are available for private buckets.
Direct uploads
The Backblaze S3 driver does not support direct uploads. Uploads go through WordPress and are then copied to B2.
Troubleshooting
| Problem | Likely cause |
|---|---|
| 403 on upload | The application key is scoped to a different bucket or lacks write access. |
| Files upload but are not publicly readable | The bucket is private, or Bucket Privacy does not match the bucket. |
| Requests fail with a hostname error | Path Style Endpoint is off. Turn it on. |
| Wrong region errors | The endpoint region does not match the bucket’s region. |
| Native B2 settings appear | The old Backblaze provider is deprecated; use Backblaze S3 Compatible. |
Need a hand with this guide?
Send support the exact step you’re stuck on and we’ll help you finish the setup.