Skip to content

[TASK]: Implement Download Functionality for Selected Assets #33610

Description

@rjvelazco

Description

Implement the functionality for the Download button in the Content Drive toolbar.
This button should enable users to download one or multiple selected assets directly from the Content Drive interface.

The Download button visibility and placement are already implemented as part of the main workflow actions feature (see parent ticket).
This task focuses exclusively on implementing the actual download behavior.

Acceptance Criteria

  • Download button triggers file download for the selected asset
  • Should only support FileAssets and DotAssets on SINGLE selection
  • When a single file is selected → download that asset directly
  • Maintain existing download permissions and access control rules
  • Ensure proper loading/disabled states during download operations
  • Handle and display errors gracefully (e.g., permission issues, network errors)

Technical Requirements

  • Integrate download logic with existing workflow toolbar structure
  • Ensure downloads use the correct file URL from the asset data model
  • Confirm that downloaded assets preserve their original file names
  • Implement appropriate UX feedback during multi-asset download (spinner, toast, etc.)
  • Make use of getImageAssetURL function to get the link for the asset
  • Use the an anchor element to create a native download

UI/UX Requirements

  • Use existing button and state styles from the Content Drive toolbar
  • Disable the button during active download operations
  • Provide visible feedback upon success or failure (consistent with other toolbar actions)

Priority

Priority 3 – Average

Additional Context

Activity

  1. added theissue type on Oct 19, 2025
  2. moved this from New to Current Sprint Backlog in dotCMS - Product Planningon Oct 27, 2025
  3. self-assigned this
    on Oct 29, 2025
  4. moved this from Current Sprint Backlog to In Progress in dotCMS - Product Planningon Oct 29, 2025
  5. github-actions commented on Oct 30, 2025

    @github-actions
    Contributor
  6. added a commit that references this issue on Oct 31, 2025
    455b07a
  7. 1 remaining item

  8. removed their assignment
    on Nov 3, 2025
  9. moved this from Done to QA in dotCMS - Product Planningon Nov 3, 2025
  10. reopened this on Nov 3, 2025
  11. assigned and unassigned on Nov 3, 2025
  12. self-assigned this
    on Nov 3, 2025
  13. added a commit that references this issue on Nov 3, 2025
    47e10a8
  14. rjvelazco commented on Nov 4, 2025

    @rjvelazco
    MemberAuthor

    Passed QA

    • dotCMS Docker Image: [dotcms/dotcms:trunk_1646d83]

    Video

    video-download-qa.mov
  15. removed their assignment
    on Nov 4, 2025
  16. added a commit that references this issue on Dec 9, 2025
    915ef97
  17. added a commit that references this issue on Feb 20, 2026
    ee8d843
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions