Documentation Center

Configuring storage for binaries of a certain file type

You can override the default storage medium or caching behavior for all binaries of a certain file type (that is, binary files with specific file extensions) by inserting an Item element inside the ItemTypes element.

Procedure

  1. In the configuration directory of the Role, open cd_storage_conf.xml for editing.
  2. Inside the ItemTypes element, insert the following Item child element:
    <Item typeMapping="Binary" itemExtension="EXT" cached="CACHE_BEHAVIOR" storageId="STORAGE_ID" />
    where
    • EXT is a file extension, for example, .pdf (note the initial period).
    • STORAGE_ID identifies the storage provider to be used for this specific item type.
    • CACHE_BEHAVIOR is a Boolean that enables or disables caching on this item type.

    EXT must be a supported file extension for a binary file. Supported file extensions are defined in Content Manager as Multimedia Types.

  3. Repeat these steps as needed in order to configure separate storage behavior for other binary file types.
  4. Save and close cd_storage_conf.xml.