Skip to content
Media CloudDocs
Happy HolidaysSave 20% with codeValid through December 31Shop the sale
Setting Up Backblaze
On this page

Setting Up Backblaze

Connect Media Cloud to Backblaze B2 using the S3-compatible API, a bucket-scoped application key and path-style requests.

3 min read·3 tags

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

  1. Open Application Keys.
  2. Create a key scoped to the bucket.
  3. Grant read, write, and delete access.
  4. 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

  1. Go to Media Cloud → Settings → Cloud Storage.
  2. Set Storage Provider to Backblaze S3 Compatible.
  3. Fill in the provider settings:
FieldValue
Access KeyBackblaze keyID
SecretBackblaze applicationKey
BucketBucket name
Bucket PrivacyPublic or Private, matching the bucket
Custom Endpoints3.<region>.backblazeb2.com
Path Style EndpointOn
  1. Turn on Enable Cloud Storage.
  2. 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

ProblemLikely cause
403 on uploadThe application key is scoped to a different bucket or lacks write access.
Files upload but are not publicly readableThe bucket is private, or Bucket Privacy does not match the bucket.
Requests fail with a hostname errorPath Style Endpoint is off. Turn it on.
Wrong region errorsThe endpoint region does not match the bucket’s region.
Native B2 settings appearThe 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.

Contact support
Start typing to search the docs

Escto close·⌘Kto open

View all results →