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
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: java.util.GregorianCalendar[time=1558435792210,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=4,WEEK_OF_YEAR=21,WEEK_OF_MONTH=4,DAY_OF_MONTH=21,DAY_OF_YEAR=141,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=3,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=49,SECOND=52,MILLISECOND=210,ZONE_OFFSET=7200000,DST_OFFSET=0]
  6. jcr:lastModified: java.util.GregorianCalendar[time=1558440888583,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=4,WEEK_OF_YEAR=21,WEEK_OF_MONTH=4,DAY_OF_MONTH=21,DAY_OF_YEAR=141,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=3,AM_PM=1,HOUR=2,HOUR_OF_DAY=14,MINUTE=14,SECOND=48,MILLISECOND=583,ZONE_OFFSET=7200000,DST_OFFSET=0]
  7. sling:resourceType: core/wcm/components/download/v1/download
  8. titleFromAsset: true
  9. textIsRich: true
  10. actionText: Download
  11. descriptionFromAsset: true
    
        

    

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 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: java.util.GregorianCalendar[time=1558435792210,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=4,WEEK_OF_YEAR=21,WEEK_OF_MONTH=4,DAY_OF_MONTH=21,DAY_OF_YEAR=141,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=3,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=49,SECOND=52,MILLISECOND=210,ZONE_OFFSET=7200000,DST_OFFSET=0]
  8. jcr:description: <p>Custom description</p>
  9. jcr:lastModified: java.util.GregorianCalendar[time=1558992130786,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=4,WEEK_OF_YEAR=22,WEEK_OF_MONTH=5,DAY_OF_MONTH=27,DAY_OF_YEAR=147,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=11,HOUR_OF_DAY=23,MINUTE=22,SECOND=10,MILLISECOND=786,ZONE_OFFSET=7200000,DST_OFFSET=0]
  10. sling:resourceType: core/wcm/components/download/v1/download
  11. titleFromAsset: false
  12. textIsRich: true
  13. actionText: Download
  14. descriptionFromAsset: false
    
        

    

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.

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: java.util.GregorianCalendar[time=1558435792210,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=4,WEEK_OF_YEAR=21,WEEK_OF_MONTH=4,DAY_OF_MONTH=21,DAY_OF_YEAR=141,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=3,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=49,SECOND=52,MILLISECOND=210,ZONE_OFFSET=7200000,DST_OFFSET=0]
  7. jcr:description: <p>Asset uploaded directly from a local file system</p>
  8. jcr:lastModified: java.util.GregorianCalendar[time=1558992253561,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=4,WEEK_OF_YEAR=22,WEEK_OF_MONTH=5,DAY_OF_MONTH=27,DAY_OF_YEAR=147,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=11,HOUR_OF_DAY=23,MINUTE=24,SECOND=13,MILLISECOND=561,ZONE_OFFSET=7200000,DST_OFFSET=0]
  9. sling:resourceType: core/wcm/components/download/v1/download
  10. titleFromAsset: false
  11. textIsRich: true
  12. actionText: Download
  13. descriptionFromAsset: false
    
        

    

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
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: java.util.GregorianCalendar[time=1558435792210,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=4,WEEK_OF_YEAR=21,WEEK_OF_MONTH=4,DAY_OF_MONTH=21,DAY_OF_YEAR=141,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=3,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=49,SECOND=52,MILLISECOND=210,ZONE_OFFSET=7200000,DST_OFFSET=0]
  7. jcr:lastModified: java.util.GregorianCalendar[time=1558992253561,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=4,WEEK_OF_YEAR=22,WEEK_OF_MONTH=5,DAY_OF_MONTH=27,DAY_OF_YEAR=147,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=11,HOUR_OF_DAY=23,MINUTE=24,SECOND=13,MILLISECOND=561,ZONE_OFFSET=7200000,DST_OFFSET=0]
  8. sling:resourceType: core/wcm/components/download/v1/download
  9. titleFromAsset: true
  10. textIsRich: true
  11. actionText: View
  12. descriptionFromAsset: true
    
        

    

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