Skip to content

Backblaze B2 ​

Backblaze B2 is low-cost cloud object storage with an S3-compatible API. FluentCart connects to it as an S3-compatible provider, so you can keep your digital product files in a B2 bucket and deliver them to customers through secure download links.

INFO

S3-compatible providers, including Backblaze B2, require FluentCart Pro.

Before You Start ​

You need:

  • A Backblaze account with B2 Cloud Storage.
  • A private bucket for your product files.
  • The bucket's S3 endpoint, for example s3.us-west-004.backblazeb2.com.
  • An application key with read and write access to that bucket. It gives you a keyID and an applicationKey.

WARNING

Do not use your Master Application Key. Backblaze does not support it on the S3-compatible API, and it has full access to your account. Create a separate application key as shown in Step 3.

Step 1: Create a Bucket in Backblaze ​

  1. Sign in to your Backblaze account. In the left menu, under B2 Cloud Storage, click Buckets.
  2. Click Create a Bucket.
  3. Enter a Bucket Unique Name. It must be unique across all of Backblaze.
  4. Under Files in Bucket are, choose Private. FluentCart gives each customer a signed download link, so the files never need to be public.
  5. Leave the other options as they are and click Create a Bucket.

Step 2: Copy the Endpoint and Region ​

On the Buckets page, find your bucket and copy the value of its Endpoint field, for example s3.us-west-004.backblazeb2.com. Copy it exactly, because the endpoint depends on the region your account uses.

The region is the part between s3. and .backblazeb2.com. In this example it is us-west-004. You need both values in FluentCart.

Step 3: Create an Application Key ​

  1. In the left menu, under B2 Cloud Storage, click Application Keys.
  2. Click Add a New Application Key.
  3. Fill in the form:
    • Name of Key: for example fluentcart-store. Use only letters, numbers and hyphens.
    • Allow access to Bucket(s): choose the bucket you created in Step 1.
    • Type of Access: choose Read and Write. FluentCart uploads and deletes files, so Read Only is not enough.
    • Allow List All Bucket Names: tick this if you want FluentCart's Select from existing option to list your buckets. Without it, you type the bucket name instead.
  4. Click Create New Key.
  5. Copy the keyID and the applicationKey. Backblaze shows the applicationKey only once, so store it somewhere safe.

In FluentCart, the keyID goes in Access Key and the applicationKey goes in Secret Key.

Step 4: Add Backblaze B2 as a Storage Provider ​

  1. In your WordPress dashboard, go to FluentCart Pro > Settings > Storage Settings.
  2. On the Storage Providers screen, click Add provider.
  3. In the Add S3-compatible provider dialog, fill in:
    • Name: Backblaze B2. Only you see this name, in the storage list and the product file picker.
    • Endpoint: your bucket's endpoint with https:// in front, for example https://s3.us-west-004.backblazeb2.com. Do not add the bucket name or a path.
  4. Click Add provider.

The new provider appears in the Storage Providers list as Inactive. FluentCart opens its setup, which has two steps: Connection and Bucket. To come back to it later, click Manage on its row.

Step 5: Connect Your Keys ​

On the Connection step:

  • Name and Endpoint are filled in from the previous step.
  • Region: enter the region from your endpoint, for example us-west-004. Do not leave it as auto: FluentCart then signs requests for us-east-1, which does not match your Backblaze region.
  • Access Key: paste the keyID.
  • Secret Key: paste the applicationKey.

Spaces pasted at the start or end of a key are removed automatically. Under Advanced settings, leave Path-style requests switched on. Backblaze supports it.

Click Next.

Step 6: Choose the Bucket ​

On the Bucket step, under Connect an existing bucket:

  • Enter bucket name: type the name of the bucket you created in Step 1. This works with any application key.
  • Select from existing: FluentCart lists your buckets so you can click one. This needs Allow List All Bucket Names on the application key.

Click Save Settings. FluentCart checks the connection while it saves. When everything is correct, you see a message such as Connected. Bucket "your-bucket" is reachable with these keys.

Step 7: Enable Backblaze B2 ​

Back on the provider page, switch on the toggle at the top right. The badge changes from Inactive to Active. You can only enable the provider once the access key, secret key and bucket are saved.

The page then shows the saved Endpoint, Bucket, Region and URL style, with three buttons:

  • Check again: tests the connection with the saved settings.
  • Edit Config: reopens the two setup steps. Leave a key field empty to keep the saved key. If you change the Endpoint, enter both keys again.
  • Delete: removes the provider from FluentCart. Your files stay in Backblaze. You cannot delete it while product downloads still use files stored in it.

Using Backblaze B2 for Product Files ​

When you add a downloadable asset to a digital product, click Choose File. In the Storage Providers dialog, select Backblaze B2 to pick a file already in your bucket (Select Files) or upload a new one (Upload).

When a customer downloads the file, FluentCart gives them a signed link that expires after 7 days, the longest the S3 API allows. The file is downloaded under the name you gave it in FluentCart.

Troubleshooting ​

"The secret key does not match the access key." The applicationKey belongs to a different key, or was not copied in full. Copy both values from the same Backblaze application key. If you lost the applicationKey, create a new key.

The connection fails and the keys are correct.

  • Check the Region. It must match your endpoint, for example us-west-004 for s3.us-west-004.backblazeb2.com, not auto.
  • Make sure you are not using the Master Application Key.

"Enter the endpoint as https://host, with no path." Enter the endpoint as https://s3.<region>.backblazeb2.com, with nothing after .com.

"Select from existing" shows no buckets. The application key does not have Allow List All Bucket Names. Switch to Enter bucket name and type the name, or create a new key with that option ticked.

Uploads or deletes fail but the connection check passes. The key's Type of Access is Read Only or Write Only. Create a key with Read and Write access to the bucket.

I cannot switch the provider on. FluentCart needs the access key, secret key and bucket before it can enable a provider. Finish both setup steps and save first.