The Asset Browser CloudCannon's interface for browsing one folder of Site files or DAM files, opened from a link under the Assets heading in the Site Navigation. Tools in the Asset Browser allow you to open, upload, and manage the files in that folder, depending on how your Site is configured. A website in CloudCannon that includes all the files, content, configuration, and settings needed to edit, build, and host a complete website. A storage location for the code and files that make up your website. CloudCannon supports the repository providers GitHub, GitLab, and Bitbucket, and highly recommends using a repository to store your website's files for better version control and collaboration. An abbreviation of Digital Asset Management, a DAM is a system for organizing, storing, and retrieving digital assets like images, videos, and documents.Asset Browser
Site
Git Repository
DAM
You can configure multiple Asset Browsers per Site with entries under the CloudCannon Configuration Files store the preferences and settings for your Site, allowing you to customize its functionality and appearance. CloudCannon supports cloudcannon.config.json, cloudcannon.config.yaml, or cloudcannon.config.yml file types, and allows you to split your configuration across multiple files. The navigation menu within a Site in CloudCannon, located on the left of the Site, just in from the App Sidebar. It typically includes links to your Site Dashboard, Collections, File Browser, and Site Settings, as well as other site-specific pages and tools. A person who belongs to the same Organization as you. Organization Members are other CloudCannon users who have been invited to your Organization to collaborate on Sites, edit content, or manage settings. Each Organization Member has their own CloudCannon account with individual permissions assigned through Permission Groups, and uses one Seat in your Subscription Plan. Organization Members were previously called Team Members.assets_config key in your CloudCannon Configuration FileConfiguration Files
Site Navigation
Organization Member

Unlike the File Browser, Asset Browsers are visible to every Organization Member and Guest A CloudCannon feature that allows you to invite someone from outside your Organization to view, edit, and publish content for a specific Site. Unlike Site Sharing, Guests invited through Guest Access do not need a CloudCannon account. Instead, they log in using a Guest Password through a dedicated Guest Login Page. Each Site with Guest Access enabled uses one Seat, regardless of how many Guests use its password. The Guest Access feature was previously called Client Sharing.Guest Access
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 Configuration Mode allows you to modify your Configuration File from any page in the app, allowing you to see your changes in real time. The Configuration Mode switch is on the right side of the Site Header.Configuration Mode
To add an Asset Browser using Configuration Mode:
- Open the Site to which you want to add an Asset Browser.
- 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.
- Click the Edit Assets button below your Collections in the Site Navigation. CloudCannon will open the Edit Assets Data Panel.
- Click the Add Assets button. CloudCannon will open the Add Assets modal.
- Enter a key for your entry in the New key name field, such as
product_images. - Click the Add button. CloudCannon will add a Card for your entry.
- Click the Card for your entry. CloudCannon will open the inputs for configuring your Asset Browser.
- (Optional.) To show files from a DAM connected to your Site, enter the DAM's Reference Key in the Source field.
- 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. - (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.

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 (
nameandicon). - 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, andoptions).

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 CloudCannon's in-browser code editor for making changes to the source code of your files. The Source Editor displays the raw content of text-based files with syntax highlighting automatically detected based on the file extension.Source Editor
To add an Asset Browser from your CloudCannon Configuration File:
- Navigate to your File Browser and open your CloudCannon Configuration File in the Source Editor, or open it in your local development environment.
- Add the top-level
assets_configkey, if your file doesn't already have one. - Add a key for your entry under
assets_config, such asproduct_images. - (Optional.) To show files from a DAM connected to your Site, add the
sourcekey under your entry, with the DAM's Reference Key. - Add the
pathkey 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 addedsource. - (Optional.) Add the
nameandiconkeys under your entry to change how the Asset Browser appears in the Site Navigation. - 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.
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 An editing interface for file paths structured data values, which appears in the Data Editor and the sidebar or data panels in the Content Editor and Visual Editor. There are three types of File Input: File, Document, and Image.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 InputFile 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.
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:
- The entry's
disable_upload_fileanddisable_file_actionskeys, applied to the input's matching options. - The entry's
options. - 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.