Freedam

Data Source Mapping

Everything on this page lives on the source Edit page, under the Folders & catalog step. This is where you tell Freedam which folders to scan, which (if any) catalog spreadsheet to read, and how each file should be matched to a record and placed into a collection.

You can configure a source three ways, from simplest to richest:

  1. Folders only (no catalog). Files are imported and dropped into the folder's collection. Matching is filename-only.
  2. Folders + catalog. A spreadsheet (CSV or XLSX) supplies one row per record; matched files inherit that row's metadata and hierarchy placement.
  3. Folders + catalog + per-key grouping, sections, disposition, and vocabularies. The full mapping - one collection per record, files sorted into sections, derived files skipped, and filename tokens captured as metadata.

Who can use it

Creating and editing sources needs the Manage import sources permission. View import sources shows sources and their runs without changing them.

Destination

Under Destination you set where imported assets and collections are created:

  • Asset class - the asset class applied to every imported file (unless a folder overrides it).
  • Collection type - the collection type used for collections created by this source. A collection type must be set before a catalog can create collections.
  • Root collection - the collection that imported collections are nested under. Picking an existing collection here also derives the collection type from it.
  • Initial workflow status - the workflow status imported assets enter at. Leave it on Workflow default to use the workflow's start status. The source detail page shows the choice under Imports enter as, and the run history and execution log show each run's and item's Workflow status.

These are source-level defaults; individual asset folders can override the asset class and root collection (see Advanced options below).

Asset folders

Under Asset folders, click Add folder for each folder Freedam should scan. A folder browser opens: expand the tree, select a folder and click Use this folder, or click Add folder manually to type the path yourself. Each folder has:

Field Notes
Label A name for the folder, e.g. images. For your reference only.
Path The folder path on the connector, e.g. /Dam/Images.
Include subfolders When on, Freedam scans nested folders too. Off by default.

Open Advanced options on a folder to reveal:

  • Include patterns - glob patterns that restrict the import to matching files, e.g. *.png, *.jpg. Leave blank to include everything not excluded.
  • Exclude patterns - glob patterns for files to skip. New folders start with the default excludes Thumbs.db and *.db so common junk files are ignored. Add patterns such as .DS_Store or ._* for macOS metadata files.
  • Asset class (override) - use a different asset class for files from this folder instead of the source default.
  • Root collection (override) - nest this folder's collections under a different root than the source default.

The Advanced options summary shows at a glance whether a folder has custom includes, excludes, a class override, or a root override.

Catalog file

A catalog is an optional spreadsheet where each row describes one record (one product, one campaign, …). When present, matched files inherit the row's metadata and are placed in the hierarchy the catalog implies.

You can supply the catalog two ways:

  • Connector path - point at a CSV/XLSX file that lives on the same connector as your assets: enter its path in Catalog path, e.g. /Dam/Data/catalog.csv.
  • Upload file - upload a CSV or XLSX directly into Freedam (use Replace to swap it later).

The catalog is optional. Leave it blank to import only the asset files; matching then falls back to filename-only.

Reading the newest export in a folder. In Connector path mode, fill in Newest file matching (optional) with a filename pattern such as DAM_Tags*.csv (* matches any characters). The path field then becomes Catalog folder, and each run reads the most recently modified file in that folder whose name matches. A team that drops a new export into the folder does not have to edit the source. Leave the pattern empty to read the single file at the path.

Leaving rows out. Only rows whose key matches (optional) takes a regular expression, e.g. /^[A-Z0-9]+$/. Rows whose key does not match are left out, for example model or colour entries keyed by a name instead of a part number.

The Catalog file section in Connector path mode, with a catalog folder, a Newest file matching pattern and the Only rows whose key matches field

Two columns drive matching and naming. You choose them in the Column mapping step, after Freedam has read the catalog's headers (Detect columns):

  • Key column - uniquely identifies each row (e.g. a SKU or product code). Files are matched against this column.
  • Name column - optional; names each collection created from a row (e.g. the product title). Falls back to the key when blank.

In the same step, each catalog column is mapped to a target: Built-in field, Hierarchy level, Vocabulary, Collection metadata, Asset metadata or Skip. For a vocabulary column whose cells hold several values (for example PD 3.0;QC 2.0), turn on Split into multiple terms and set the Separator.

Column languages. A column mapped to an asset field that holds text in several languages gets a Language select: the column writes that language only, and Default language is your organization's main language. Two columns can fill two languages of the same field, for example Name EN and Name FR; two columns writing the same field in the same language are refused when you save. A filename token mapped to such a field has the same select. On each run, a blank cell keeps the text the asset already has, and translations added in Freedam are kept: a run changes only the languages its columns write. Filename facets and the description are rewritten only when the value they come from changed.

Once a run has completed, the source detail page shows a Catalog card with the file the last run read, its number of products and its modification date. If products the source still holds are missing from the latest catalog, the card gives their number. They keep their values and collections.

Matching files to catalog rows

Turn on Match files to catalog rows to link each asset file to a catalog row, so it lands in the right collection and inherits its data. Leave it off to drop files straight into the folder's collection.

When matching is on, configure:

  • Match against catalog column - the catalog column the resolved key is compared to (usually the key column).
  • Extract the key from the filename with a pattern - choose how the key is read from the filename:
    • Off - the whole filename without its extension is the key. 12345.jpg matches the value 12345.
    • On - use a pattern when the key is buried inside a longer filename, e.g. pull 12345 out of product_12345_front_v2.jpg.

Building the pattern. Rather than writing a regular expression by hand, you label the parts of a sample filename under Label the parts of a filename: Freedam splits a real filename into segments at the chosen Delimiter and you click each segment to set its role (the key, a role, a sequence number, and so on). Try another file loads a different sample. From those labels Freedam generates a regular expression with a named capture group for the key. The generated pattern is shown read-only. To override it, open Advanced: edit regex, click Edit manually and write the expression directly. A manually-edited pattern is validated as you type:

  • It must be wrapped in slashes, e.g. /(?P<key>\d+)/.
  • It must contain a named group such as (?P<key>…) to capture the key.
  • It must be a valid regular expression.

A file's key is read from its name when the file is new or has changed. After you change the pattern, files that were already imported keep their previous key until they change at the source. Ask Freedam support to re-read the keys of existing files if you need the new pattern applied to them.

Live preview. As you adjust the column and pattern, Freedam samples real files from your folders and shows, per file, the Resolved key, whether it Matched, and the resolved Target, Section, and Disposition - exactly where each file would land if you ran the import now. A summary line reports how many sample files matched and how many catalog rows have a matching file, so you can verify the mapping before running anything.

Group files into one collection per match key

Turn on Group files into one collection per match key to create one collection per distinct match key, instead of dumping matched files into a single shared collection.

  • When a catalog row exists for that key, the collection is placed in your catalog hierarchy and filled with the row's metadata.
  • When no catalog row exists yet, the collection sits flat at the root.

The important part: a flat per-key collection is automatically re-nested and enriched on a later run once a matching catalog row appears - the collection keeps its identity, so no duplicate is created and the files already attached stay put. This is what makes partial or late-arriving catalogs work: you can start importing files before the full catalog is delivered, and the hierarchy fills in by itself as catalog rows arrive.

Unmatched files (orphan routing)

An unmatched file is one whose key couldn't be extracted from its filename, or whose key has no matching catalog row. Choose what happens to these:

  • Keep unmatched files at the root - they are imported into the source's root collection.
  • Put them in a separate collection - pick an existing collection with the collection picker, and all unmatched files go there.

Routing unmatched files to a dedicated collection (rather than scattering them at the root) makes it easy to review them and refine the pattern. Note that with per-key grouping on, a file whose key was extracted but has no catalog row still gets its own per-key collection - orphan routing only catches files where no key could be resolved at all.

File disposition (skip)

Some sources ship derived or duplicate files alongside the originals - for example web-optimised renditions. Under File disposition you can mark these to be skipped so they are never downloaded or imported:

  • Disposition token - pick the filename token (a named group from your pattern) that distinguishes the variants.
  • For each value that token can take, choose Import or Skip.

Skipped files are recorded but never streamed or ingested, so they cost no storage and never become assets. (You need a named token in the filename pattern before this control is available.)

Sections

If the target collection type defines asset sections, you can sort each file into the right section automatically. Sections are slots within a collection - for example Main image, Gallery, Documents, Videos - defined on the collection type (in Admin → Collection Types), so they apply to every collection of that type.

Under Sections, pick the Section token (a filename token) and map each of its values to a section. Set a Default section for files whose token value isn't mapped. A file whose section can't be resolved lands in the collection's Ungrouped area.

Note: This control only appears when the target collection type has sections configured. If it doesn't, the control tells you so - add sections to the collection type first.

Vocabularies and metadata from filename tokens

Beyond the key, a filename pattern can capture extra tokens (role, document type, shot number, …). Under Filename metadata, map each captured token to a target:

  • Vocabulary - capture the value as a controlled-vocabulary facet. Freedam auto-provisions the vocabulary and its terms if they don't exist yet, so a token like role can populate an image_type facet without any manual setup.
  • Asset metadata - write the value into an asset metadata field.
  • Skip - ignore the token.

Two special roles help with image sets:

  • Primary image - pick the token that marks the hero shot. A file is treated as primary when this token is absent from its filename (e.g. SKU.png is the hero, SKU_PSP_1.png is a variant). The primary becomes the collection cover.
  • Image order - pick a numeric token that orders images within each record (primary first).

This complements catalog column mapping: catalog columns feed collection-level metadata and the hierarchy, while filename tokens feed per-file metadata and facets.

Targets recap

When the mapping is complete, every imported file resolves to:

  • a target collection - a catalog-nested collection, a flat per-key collection, the folder's collection, or the orphan collection;
  • a section within that collection (if sections are configured);
  • a disposition - Import or Skip;
  • an asset class (source default or folder override);
  • whatever metadata and facets its catalog row and filename tokens supply.

The live preview shows all of this before you run, so you can confirm the mapping is right.

Try Freedam

Related Documentation

Explore more in this category