In the admin panel, select Backblaze B2 under Admin > Settings > Storage > Driver.
Create the bucket
- Sign in to Backblaze and make sure B2 Cloud Storage is enabled on your account.
- Go to
B2 Cloud Storage > Bucketsand create a new bucket. - Set the bucket type to Public if uploaded files should be served directly by the site or through a CDN.
- After the bucket is created, open its details and copy the S3 endpoint. It looks like:
https://s3.us-east-005.backblazeb2.com.
Create an application key
- Go to
B2 Cloud Storage > Application Keys. - Create a new key. You can allow access to all buckets, or restrict it to the bucket you created for the site.
- If you restrict the key to one bucket, enable Allow List All Bucket Names. This helps S3-compatible tools and the storage validation check list the bucket correctly.
- Copy the
keyIDandapplicationKey. The application key is shown only once.
Fill in the admin settings
In Admin > Settings > Storage, select Backblaze B2 and fill in:
Application key ID: the BackblazekeyID.Application key: the BackblazeapplicationKey.Bucket name: your B2 bucket name.Region: the region from the endpoint, for exampleus-east-005.Endpoint URL: the full S3 endpoint, for examplehttps://s3.us-east-005.backblazeb2.com.Custom URL: optional. Use this only if you serve the bucket through a CDN or custom domain, for examplehttps://media.yourdomain.com.
Allow your site in CORS rules
Backblaze B2 also needs a CORS rule for your website domain. Without it, public files may upload correctly, but admin previews, file manager assets, or browser-based asset requests can fail because the browser blocks cross-origin access.
- In Backblaze, open your bucket and click CORS Rules.
- Choose Share everything in this bucket with this one origin.
- Enter your site origin, for example
https://yourdomain.com. Use only the scheme and domain, without a path. - If your admin panel is served from a different subdomain, add that origin too. For example, add
https://admin.yourdomain.comif the public site and admin panel do not share the same origin. - If you are using a CDN or custom storage URL, make sure the CDN/custom domain is also allowed wherever your setup requires browser access.
Notes:
• Backblaze B2 controls public access at the bucket level. If the bucket is private, public media URLs will not load unless you put a signed/CDN layer in front of it.
• For CDN delivery, Backblaze commonly supports Cloudflare and Fastly in front of B2. Add the CDN/custom domain to Custom URL only after it is working.
• The endpoint should not include the bucket name. Use https://s3.<region>.backblazeb2.com.
• CORS changes can take a short time to apply. If admin previews still fail, wait a minute and refresh the admin page.