Downloadv2

Download allows linking to an asset for download. Optionally displays a title, description, metadata and a download action.

Using Core Components

Adobe Help Center

Examples

Standard

Simple Download with only an Action Text and Download Asset configured. The Title and Description are by default taken from the provided asset.

Lava flowing into the ocean

Lava flowing into the ocean
Filename
lava-into-ocean.jpg
Size
495 KB
Format
image/jpeg
Download
  1. fileReference: /content/dam/core-components-examples/library/sample-assets/lava-into-ocean.jpg
  2. sling:resourceType: core-components-examples/components/download
  3. titleFromAsset: true
  4. textIsRich: true
  5. actionText: Download
  6. descriptionFromAsset: true
    
        

    

Lava flowing into the ocean

Lava flowing into the ocean
Filename
lava-into-ocean.jpg
Size
495 KB
Format
image/jpeg
Download

Title and Description

By default, the Title and Description are taken from the provided asset. In this example, we provide a custom title and description for the download.

Custom Title

Custom description

Filename
lava-into-ocean.jpg
Size
495 KB
Format
image/jpeg
Download
  1. jcr:title: Custom Title
  2. fileReference: /content/dam/core-components-examples/library/sample-assets/lava-into-ocean.jpg
  3. inline: false
  4. jcr:description: <p>Custom description</p>
  5. sling:resourceType: core-components-examples/components/download
  6. titleFromAsset: false
  7. textIsRich: true
  8. actionText: Download
  9. descriptionFromAsset: false
    
        

    

Custom Title

Custom description

Filename
lava-into-ocean.jpg
Size
495 KB
Format
image/jpeg
Download

Direct Upload

It is possible to upload an asset directly from a local file system rather than selecting an asset from DAM.

Uploaded Asset

Asset uploaded directly from a local file system

Filename
lava-into-ocean.jpg
Size
81 KB
Format
image/jpeg
Download
  1. jcr:title: Uploaded Asset
  2. fileName: lava-into-ocean.jpg
  3. jcr:description: <p>Asset uploaded directly from a local file system</p>
  4. sling:resourceType: core-components-examples/components/download
  5. titleFromAsset: false
  6. textIsRich: true
  7. actionText: Download
  8. descriptionFromAsset: false
    
        

    

Uploaded Asset

Asset uploaded directly from a local file system

Filename
lava-into-ocean.jpg
Size
81 KB
Format
image/jpeg
Download

Display Inline

By default the asset is downloaded directly, but it is also possible to display it inline in the browser.

Lava flowing into the ocean

Lava flowing into the ocean
Filename
lava-into-ocean.jpg
Size
495 KB
Format
image/jpeg
View
  1. fileReference: /content/dam/core-components-examples/library/sample-assets/lava-into-ocean.jpg
  2. inline: true
  3. sling:resourceType: core-components-examples/components/download
  4. titleFromAsset: true
  5. textIsRich: true
  6. actionText: View
  7. descriptionFromAsset: true
    
        

    

Lava flowing into the ocean

Lava flowing into the ocean
Filename
lava-into-ocean.jpg
Size
495 KB
Format
image/jpeg
View