Recent searches

in

What is an asset source?

Last modified: December 3rd, 2026

On this page

Assets are static files such as images, videos, and documents that are part of a website. Your Site's assets live in one of two places: any folder within your Site's source folder in your Git Repository, or a third-party Digital Asset Manager (DAM) connected to your Site. An asset source is a place where Organization Members can upload or select files in CloudCannon: one of those two places, or an Asset Browser, which limits one of them to a single folder with its own upload settings.

Organization Members can upload or select assets in inputs, Editable Regions, and the Content Editor:

  • Inputs — File Inputs and URL Inputs, and images in Rich Text Inputs.
  • Editable Regions — Image Editable Regions, and images in Text Editable Regions that edit rich text.
  • The Content Editor — Images in the body content of a file.

You choose which asset sources each of these uses with the allowed_sources option in your CloudCannon Configuration File. For the steps, please read our documentation on choosing the asset sources for inputs and Editable Regions. For what Organization Members see when they upload or select a file, please read our documentation on what a File Input is and what the Asset Browser is.

Asset source values#

The allowed_sources option is an array, and each value in it is one of three types. Each type refers to your Site files, a DAM, or an Asset Browser:

  • site-files — The files within your Site's source folder in your Git Repository.
  • A DAM's Reference Key — The DAM connected to your Site with that Reference Key. For more information, please read our documentation on managing your connected DAMs.
  • The key of an assets_config entry — The Asset Browser for that entry, with its folder and upload settings. For more information, please read our documentation on configuring an Asset Browser.

For example, this input is configured with one asset source of each type:

Copied to clipboard
_inputs:
  hero_image:
    type: image
    options:
      allowed_sources:
        - site-files
        - brand-dam
        - product_images
{
  "_inputs": {
    "hero_image": {
      "type": "image",
      "options": {
        "allowed_sources": [
          "site-files",
          "brand-dam",
          "product_images"
        ]
      }
    }
  }
}

The hero_image input is configured with your Site files, the DAM connected to your Site with the Reference Key brand-dam, and the Asset Browser for the product_images entry.

When someone uploads a file, the Choose your file destination dropdown in the Upload files modal shows each asset source by its label: Site files, the DAM's name, or the Asset Browser's name, which defaults to its key in title case.

The Select your source dropdown in the Files modal uses the same labels when someone selects an existing file.

If you don't set allowed_sources for an input, Editable Region, or the Content Editor, CloudCannon will allow Organization Members to select from, or upload to, your Site files and any DAM connected to your Site. Asset Browsers are only available when you add their entry key to allowed_sources.

If you set allowed_sources, Organization Members can only upload to and select from the asset sources it lists.

Multiple asset sources#

If only one asset source is available, CloudCannon uploads files directly to it without opening the Upload files modal. When Organization Members select an existing file, the Files modal opens on that asset source, with no Select your source dropdown.

A screenshot of the Files modal for a File Input linked to the Newsletter PDFs Asset Browser shows that Asset Browser's folder, with a 2025 subfolder and the 2026-10.pdf and 2026-11.pdf files.
The Files modal showing an Asset Browser's folder

If more than one asset source is available, CloudCannon opens the Upload files modal before each upload, and Organization Members choose an asset source from the Choose your file destination dropdown. When they select an existing file, the Files modal shows a Select your source dropdown for switching between asset sources.

Troubleshooting unavailable asset sources#

An asset source can appear unavailable in the Choose your file destination dropdown in the Upload files modal, or the Select your source dropdown in the Files modal. Both dropdowns show an unavailable asset source in gray, and Organization Members cannot select it.

In both modals, an asset source is unavailable for these reasons:

  • Site files — You set allowed_sources for the input, Editable Region, or Content Editor, but left out site-files. CloudCannon still lists your Site files, but Organization Members can only choose the asset sources you listed.
  • Unlinked source in parentheses — CloudCannon can't find a matching asset source for a value in allowed_sources, so it lists the value as you entered it. This happens when:
    • The value is misspelled, so it doesn't match site-files, the Reference Key of a connected DAM, or an assets_config key. Correct the spelling.
    • The value is the Reference Key of a DAM that isn't connected to your Site. Connect the DAM, or remove the value.
    • The value matches an Asset Browser for a DAM, but the entry's source is the Reference Key of a DAM that isn't connected to your Site. Connect the DAM, or correct the entry's source. For more information, please read our documentation on how Asset Browsers show DAM files.

Unavailable asset sources when uploading

In the Choose your file destination dropdown, an asset source shows Uploads locked in parentheses when one of these settings disables uploading:

  • Uploads Locked or Browsing Locked checkbox for your Site files — You can find these checkboxes on the Assets page under Site Settings, by selecting the Settings option in the Context Menu of the Site Files Card. If a DAM connected to your Site uses relative paths, CloudCannon locks both, whatever these checkboxes are set to. For more information, please read our documentation on locking uploads and browsing for Site files.
  • Uploads Locked checkbox for a DAM — You can find this checkbox on the Assets page under Site Settings, by selecting the Settings option in the Context Menu of that DAM's Card. For more information, please read our documentation on managing your connected DAMs.
  • disable_upload_file key of an Asset Browser — You can set this key under the entry in assets_config in your CloudCannon Configuration File, or with the Disable Upload File checkbox in the Edit Advanced Data Panel in Configuration Mode. For more information, please read our documentation on limiting what Organization Members can do in an Asset Browser.

If no asset source is available to upload to, or the input sets disable_upload_file to true, the input will not show the Upload a new file option. Instead of a Select file button that opens a Context Menu with both options, the input shows a Select existing file button with a folder icon, which opens the Files modal directly. For an input that only accepts images, the labels say image instead of file.

Unavailable asset sources when selecting existing files

When an Organization Member uses the Select existing file option in an input to open the Files modal, CloudCannon still lists asset sources with uploads locked in the Select your source dropdown. When they choose one, the Files modal will not show the Add button, so they can select an existing file but cannot upload files or create folders there.

In this dropdown, an asset source shows Browsing locked in parentheses when browsing is locked for your Site files, by the Browsing Locked checkbox or by a DAM connected to your Site that uses relative paths. This applies to your Site files and any Asset Browser that shows them.

If no asset source is available to select from, the Files modal shows Empty, with the message "There are no file sources connected to this input."

Related Resources

Open in a new tab