The Acquia DAM module version 1.1.x provides two methods to render assets on your Drupal website. Select the method that best fits your site's requirements for performance, storage, and access control.
Assets are served directly from the Acquia DAM CDN with embed codes. The asset files remain in Acquia DAM and are delivered to visitors through iframes or direct URLs.
This is the default and recommended method for most implementations.
Assets are downloaded from Acquia DAM and stored locally in your Drupal file system. The module keeps local copies synchronized when assets are updated in Acquia DAM.
Use this method when you need to restrict access to assets with Drupal’s permission system or serve assets from private file storage.
Embed codes serve assets directly from Acquia DAM’s CDN. This method does not store files locally in Drupal and relies on Acquia DAM for file delivery.
After you use the embed codes:
To configure a media type to use embed render:
In the Media source configuration section, ensure that the Download and sync assets checkbox is empty.
The media type now serves assets with embed codes from the Acquia DAM CDN.
To configure the display of embed‑based assets:
Download and sync store asset files locally in your Drupal file system. This method downloads files from Acquia DAM and keeps them synchronized after assets update.
After you enable download and synchronization on a media type:
Use this method to:
Control access to assets with the permission or role system of Drupal.
Serve files through public or private file systems of Drupal rather than directly from the Acquia DAM CDN.
Integrate with file management and private file handling of Drupal.
To enable download and synchronization on a media type:
To restrict which file extensions are downloaded, enter them in the Allowed file extensions field. Leave this field empty to permit all extensions.
The media type now downloads assets from Acquia DAM and keeps them synchronized in your local file system.
After you use download and sync, you must decide whether to store files in the public or private file system.
Assets stored in public files:
Assets stored in private files:
Select the option that matches your security and performance requirements before you enable Download and sync assets for a media type.
After you enable download and sync on a media type, assets can be downloaded to local storage in several ways.
To trigger a manual download for a specific media type:
In the Acquia DAM configuration section, select the Download and sync assets button.
Monitor the batch progress as the system downloads and processes assets.
Run the download command to process assets for a specific media type:
drush acquia-dam:download-assets <media-type-id> [--redownload]Options:
Examples:
drush acquia-dam:download-assets acquia_dam_video_asset
drush acquia-dam:download-assets acquia_dam_video_asset --redownloadEmbed codes serve assets directly from Acquia DAM’s CDN. This method does not store files locally in Drupal and relies on Acquia DAM for file delivery.
After you use the embed codes:
To configure a media type to use embed render:
In the Media source configuration section, ensure that the Download and sync assets checkbox is empty.
The media type now serves assets with embed codes from the Acquia DAM CDN.
To configure the display of embed‑based assets:
Download and sync store asset files locally in your Drupal file system. This method downloads files from Acquia DAM and keeps them synchronized after assets update.
After you enable download and synchronization on a media type:
Use this method to:
Control access to assets with the permission or role system of Drupal.
Serve files through public or private file systems of Drupal rather than directly from the Acquia DAM CDN.
Integrate with file management and private file handling of Drupal.
To enable download and synchronization on a media type:
To restrict which file extensions are downloaded, enter them in the Allowed file extensions field. Leave this field empty to permit all extensions.
The media type now downloads assets from Acquia DAM and keeps them synchronized in your local file system.
After you use download and sync, you must decide whether to store files in the public or private file system.
Assets stored in public files:
Assets stored in private files:
Select the option that matches your security and performance requirements before you enable Download and sync assets for a media type.
After you enable download and sync on a media type, assets can be downloaded to local storage in several ways.
To trigger a manual download for a specific media type:
In the Acquia DAM configuration section, select the Download and sync assets button.
Monitor the batch progress as the system downloads and processes assets.
Run the download command to process assets for a specific media type:
drush acquia-dam:download-assets <media-type-id> [--redownload]Options:
Examples:
drush acquia-dam:download-assets acquia_dam_video_asset
drush acquia-dam:download-assets acquia_dam_video_asset --redownloadIf this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.