FEATURE: Add download action for multi selection of assets#299
Merged
Sebobo merged 3 commits intoFlowpack:2.x-devfrom Apr 21, 2026
Merged
Conversation
Sebobo
approved these changes
Apr 21, 2026
Member
Sebobo
left a comment
There was a problem hiding this comment.
Thx, works well. We can improve if based on user feedback if needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.