---
title: Configure a custom BLOB provider
slug: cms-13/docs/configure-a-custom-blob-provider
docTags: 
createdAt: 2026-07-30T20:22:08.991Z
---

Custom BLOB providers let you direct binary storage to your preferred backend, such as Azure or AWS, instead of the default file system.

Add a `BlobProviders` section in `appsettings.json` under the `episerver/cms` element to define a custom provider:

```json
{
  "EPiServer": {
    "Cms": {
      "BlobProviders": {
        "DefaultProvider": "Custom",
        "Providers": {
          "Custom": "CustomProvider, Customassembly",
          "Another": "Another_CustomProvider, Customassembly"
        }
      }
    }
  }
}
```

Add the BLOB provider programmatically during the site configuration phase by using `IServiceCollection` or by configuring the `BlobProvidersOptions` class directly.

```csharp
public void ConfigureServices(IServiceCollection services) {
  // This provider will be added as the default
  services.AddFileBlobProvider("myFileBlobProvider", @ "c:\path\to\file\blobs");
  services.AddBlobProvider<MyCustomBlobProvider>("myCustomBlobProvider", defaultProvider: false);
  services.Configure<BlobProvidersOptions>(o => {
    o.AddProvider<MyCustomBlobProvider>("anotherCustomBlobProvider");
    o.DefaultProvider = "anotherCustomBlobProvider";
  });
}
```
