Downloadv1

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. jcr:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. fileReference: /content/dam/core-components-examples/library/sample-assets/lava-into-ocean.jpg
  4. jcr:lastModifiedBy: admin
  5. jcr:created:
  6. jcr:lastModified:
  7. sling:resourceType: core-components-examples/components/download
  8. titleFromAsset: true
  9. textIsRich: true
  10. actionText: Download
  11. 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:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. jcr:title: Custom Title
  4. fileReference: /content/dam/core-components-examples/library/sample-assets/lava-into-ocean.jpg
  5. jcr:lastModifiedBy: admin
  6. inline: false
  7. jcr:created:
  8. jcr:description: <p>Custom description</p>
  9. jcr:lastModified:
  10. sling:resourceType: core-components-examples/components/download
  11. titleFromAsset: false
  12. textIsRich: true
  13. actionText: Download
  14. 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:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. jcr:title: Uploaded Asset
  4. jcr:lastModifiedBy: admin
  5. fileName: lava-into-ocean.jpg
  6. jcr:created:
  7. jcr:description: <p>Asset uploaded directly from a local file system</p>
  8. jcr:lastModified:
  9. sling:resourceType: core-components-examples/components/download
  10. titleFromAsset: false
  11. textIsRich: true
  12. actionText: Download
  13. 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. jcr:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. fileReference: /content/dam/core-components-examples/library/sample-assets/lava-into-ocean.jpg
  4. jcr:lastModifiedBy: admin
  5. inline: true
  6. jcr:created:
  7. jcr:lastModified:
  8. sling:resourceType: core-components-examples/components/download
  9. titleFromAsset: true
  10. textIsRich: true
  11. actionText: View
  12. descriptionFromAsset: true
    
        

    

Lava flowing into the ocean

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