Skip to content

FEATURE: Add download action for multi selection of assets#299

Merged
Sebobo merged 3 commits intoFlowpack:2.x-devfrom
connykaelinvisol:feature/8-multi-selection-download
Apr 21, 2026
Merged

FEATURE: Add download action for multi selection of assets#299
Sebobo merged 3 commits intoFlowpack:2.x-devfrom
connykaelinvisol:feature/8-multi-selection-download

Conversation

@FM-visol
Copy link
Copy Markdown
Contributor

Important note
This PR builds on top of #295 , so only the last two commits in this PR are relevant.

What I did
Added a download action for multi-selected assets. Previously, downloading was only available for a single asset at a time.
This also fixes the position of the icon of the single download button.

How I did it
Added useDownloadAssets hook to sequentially trigger downloads with a 200ms delay to avoid browsers ignoring the download request
Refactored DownloadAssetButton to accept an assets array instead of a single asset, supporting both single and multi-selection.

@Sebobo Sebobo self-requested a review April 20, 2026 15:04
@Sebobo Sebobo added Feature A new feature labels Apr 20, 2026
Copy link
Copy Markdown
Member

@Sebobo Sebobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, works well. We can improve if based on user feedback if needed.

@Sebobo Sebobo merged commit 946b696 into Flowpack:2.x-dev Apr 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants