ComfyUI_frontend icon indicating copy to clipboard operation
ComfyUI_frontend copied to clipboard

[feat] Add ZIP download support for multiple assets

Open viva-jinyi opened this issue 1 week ago • 5 comments

Summary

When downloading multiple selected assets, they are now bundled into a single ZIP file instead of downloading each file individually.

Changes

  • Use client-zip library to generate ZIP files in the browser
  • Use Promise.allSettled to include remaining files in ZIP even if some fail
  • Automatically add numbers to duplicate filenames
  • Notify users with toast messages based on download status
  • Auto-generate filename with timestamp to prevent filename collisions

Modified Files

  • src/platform/assets/composables/useMediaAssetActions.ts: Implement ZIP download logic
  • src/locales/en/main.json: Add new i18n strings
  • package.json: Add client-zip dependency

screen-capture.webm

🤖 Generated with Claude Code Co-Authored-By: Claude [email protected]

┆Issue is synchronized with this Notion page by Unito

viva-jinyi avatar Nov 27 '25 14:11 viva-jinyi