Recent searches

in

Configure an Asset Browser

Last modified: December 3rd, 2026

On this page

Permissions required

Members of the Owners, Developers, Technical Editors, and Partner Default Permission Groups, or Custom Permission Groups with the site:source-editor:write and site:file:write permissions, can edit your CloudCannon Configuration File.

The Asset Browser is CloudCannon's interface for browsing one folder of images, documents, or other files from your Site's source folder in your Git Repository, or from a DAM connected to your Site.

You can configure multiple Asset Browsers per Site with entries under the assets_config key in your CloudCannon Configuration File. Each entry adds a link to an Asset Browser under the Assets heading in your Site Navigation. For what Organization Members see and do, please read our documentation on what the Asset Browser is. To have inputs and Editable Regions upload to and select from an Asset Browser's folder, please read our documentation on choosing the asset sources for inputs and Editable Regions. To turn off uploading or file actions in an Asset Browser, please read our documentation on limiting what Organization Members can do in an Asset Browser.

A screenshot of a Site in CloudCannon shows the Assets heading in the Site Navigation with Product Images, Newsletter PDFs, and Brand Library links, and the Asset Browser for Product Images open, with three image files and the Add button.
An Asset Browser and the Assets heading in the Site Navigation

Unlike the File Browser, Asset Browsers are visible to every Organization Member and Guest who can open your Site.

If you want an Asset Browser to show files from a DAM, connect the DAM to your Site and set its Reference Key before you start. For more information, please read our documentation on managing your connected DAMs. For how an Asset Browser chooses a DAM folder, and how it works differently from one that shows Site files, please read our documentation on how Asset Browsers show DAM files.

Add an Asset Browser with Configuration Mode#

Configuration Mode lets you update your CloudCannon Configuration File from the pages it configures in CloudCannon. For more information, please read our documentation on what Configuration Mode is.

To add an Asset Browser using Configuration Mode:

  1. Open the Site to which you want to add an Asset Browser.
  2. Click the Configuration Mode switch on the right of the Site Header to turn it on. Purple Edit Configuration buttons will appear across the app.
  3. Click the Edit Assets button below your Collections in the Site Navigation. CloudCannon will open the Edit Assets Data Panel.
  4. Click the Add Assets button. CloudCannon will open the Add Assets modal.
  5. Enter a key for your entry in the New key name field, such as product_images.
  6. Click the Add button. CloudCannon will add a Card for your entry.
  7. Click the Card for your entry. CloudCannon will open the inputs for configuring your Asset Browser.
  8. (Optional.) To show files from a DAM connected to your Site, enter the DAM's Reference Key in the Source field.
  9. Enter the path to the folder you want the Asset Browser to show in the Path field, such as images/products. The path is relative to your Site's source folder, or to the root of the DAM if you entered a Source.
  10. (Optional.) Enter a name in the Display name field and select an icon from the Icon dropdown to change how the Asset Browser appears in the Site Navigation.

CloudCannon will add an Assets heading to your Site Navigation, with a link to your Asset Browser. Your new entry is an unsaved change to your CloudCannon Configuration File. To keep it, save your changes.

A screenshot of the Edit Assets Data Panel in Configuration Mode shows Cards for the product_images, newsletter_pdfs, and brand_library entries with their names, icons, and paths, and the Add Assets button, next to the Edit Assets button in the Site Navigation.
The Edit Assets Data Panel

Edit an entry with Configuration Mode

In Configuration Mode, you can edit an entry's keys with these buttons in its Asset Browser:

  • Edit Name and Icon button — Changes the label and icon of the link in the Site Navigation (⁠name and icon⁠).
  • Edit documentation link button — Changes the documentation link at the top of the Asset Browser (⁠documentation⁠).
  • Edit description button — Changes the text at the top of the Asset Browser (⁠description⁠).
  • Edit Advanced button — Changes where the files come from, turns uploading and file actions on or off, and sets upload options (⁠source, path, disable_upload_file, disable_file_actions, and options⁠).
A screenshot of the Newsletter PDFs Asset Browser with Configuration Mode on shows purple Edit Name and Icon, Edit documentation link, Edit description, and Edit Advanced buttons around its name, documentation link, and description, and the Edit Assets button in the Site Navigation.
The Asset Browser in Configuration Mode

Add an Asset Browser from your Configuration File#

You can add an Asset Browser by editing your CloudCannon Configuration File directly, either in the Source Editor in CloudCannon or in your local development environment.

To add an Asset Browser from your CloudCannon Configuration File:

  1. Navigate to your File Browser and open your CloudCannon Configuration File in the Source Editor, or open it in your local development environment.
  2. Add the top-level assets_config key, if your file doesn't already have one.
  3. Add a key for your entry under assets_config, such as product_images.
  4. (Optional.) To show files from a DAM connected to your Site, add the source key under your entry, with the DAM's Reference Key.
  5. Add the path key under your entry, with the path to the folder you want the Asset Browser to show. The path is relative to your Site's source folder, or to the root of the DAM if you added source.
  6. (Optional.) Add the name and icon keys under your entry to change how the Asset Browser appears in the Site Navigation.
  7. Save your CloudCannon Configuration File, or commit and push it if you edited it locally.

CloudCannon will add an Assets heading to your Site Navigation, with a link to your Asset Browser.

Copied to clipboard
assets_config:
  product_images:
    name: Product Images
    icon: photo_library
    path: images/products
    description: Photos for product pages. Use JPG files at least 1200 pixels wide.
{
  "assets_config": {
    "product_images": {
      "name": "Product Images",
      "icon": "photo_library",
      "path": "images/products",
      "description": "Photos for product pages. Use JPG files at least 1200 pixels wide."
    }
  }
}

The key for this entry. If you leave out name, CloudCannon will use the key in title case.

The label of the link in the Site Navigation.

The icon next to the link. If you leave out icon, CloudCannon will use perm_media.

The folder this Asset Browser shows, relative to your Site's source folder. If you leave out path, the Asset Browser will show every file in your source folder.

The text shown at the top of the Asset Browser.

In this example, the Site Navigation will show a Product Images link under the Assets heading, which opens an Asset Browser for the images/products folder. Organization Members can open subfolders of images/products, but not the folders above it.

Configuration options

These are the keys you can set on each entry. For the documentation key and the full reference, please read our documentation on the assets_config configuration key.

This key defines the description text that appears at the top of the asset browser.

Appears in: assets_config.*.

Prevents renaming, moving and deleting files in this entry. This is the default for any Input that lists this entry in options.allowed_sources.

Defaults to: false

Appears in: assets_config.*.

Prevents uploading files and creating folders in this entry. This is the default for any Input that lists this entry in options.allowed_sources.

Defaults to: false

Appears in: assets_config.*.

This key defines the icon for an entry. The icon appears in the Site Navigation.

Defaults to: perm_media

Allowed values: 123 360 10k 10mp 11mp 12mp 13mp 14mp 15mp 16mp and 3574 more.

Appears in: assets_config.*.

This key defines the display name for an entry. The name appears in the Site Navigation and at the top of the asset browser.

Appears in: assets_config.*.

This key defines the options for files uploaded to an entry, using the same keys as the options of a File Input. An Input that lists this entry in options.allowed_sources uses these as defaults.

Appears in: assets_config.*.

This key defines the folder an entry is limited to, relative to the root of the source. Files outside of this folder cannot be browsed, and files are uploaded to this folder by default. Defaults to the root of the source.

Appears in: assets_config.*.

This key defines where the files for an entry are stored. Set this to the reference key of a DAM connected to your Site, or to site-files for the files of your Site. Defaults to site-files.

Appears in: assets_config.*.

Set upload options for an Asset Browser#

The options key under an assets_config entry sets the upload options for its Asset Browser. They apply to files uploaded in the Asset Browser, and to files uploaded through any input linked to it. The options key takes these upload options from a File Input: accepts_mime_types, expandable, height, max_file_size, max_file_size_message, mime_type, paths, resize_style, and width.

The accepts_mime_types option also limits which files the Asset Browser shows. Files of other types in its folder will not appear in the Asset Browser.

Copied to clipboard
assets_config:
  product_images:
    path: images/products
    options:
      accepts_mime_types:
        - image/jpeg
        - image/png
      width: 1200
      height: 800
      resize_style: cover
      paths:
        uploads_filename: product-[asset_filename_without_ext|slugify].[asset_ext]
{
  "assets_config": {
    "product_images": {
      "path": "images/products",
      "options": {
        "accepts_mime_types": [
          "image/jpeg",
          "image/png"
        ],
        "width": 1200,
        "height": 800,
        "resize_style": "cover",
        "paths": {
          "uploads_filename": "product-[asset_filename_without_ext|slugify].[asset_ext]"
        }
      }
    }
  }
}

The Product Images Asset Browser will only show and accept JPG and PNG files.

CloudCannon will resize uploaded images to cover 1200 by 800 pixels.

CloudCannon will rename uploaded files with a product- prefix.

For each option, please read our documentation on configuring a File Input. For the filename placeholders, please read our documentation on adjusting the uploads path.

How input options combine with Asset Browser options

When someone uploads or selects a file through an Asset Browser that an input, Editable Region, or the Content Editor lists in allowed_sources, CloudCannon applies the settings of that Asset Browser and of the input, Editable Region, or Content Editor, in this order:

  1. The entry's disable_upload_file and disable_file_actions keys, applied to the input's matching options.
  2. The entry's options.
  3. The options of the input, Editable Region, or Content Editor.

A later setting overrides an earlier one, so an input or Editable Region can override any setting from the entry.

The entry's disable_upload_file key sets both the input's disable_upload_file and disable_upload_file_in_file_browser options, and its disable_file_actions key sets the input's disable_file_actions_in_file_browser option. To turn an action back on for one input, set the matching option in that input's options. For example, an input with only disable_upload_file: false will allow Upload a new file, but its Files modal will still hide the Add button unless the input also sets disable_upload_file_in_file_browser: false.

The entry's path sets the upload folder, and any paths in the entry's options or the input's options override it in the same order.

For how to list an Asset Browser in allowed_sources, please read our documentation on choosing the asset sources for inputs and Editable Regions.

Related Resources

Open in a new tab