πŸ“ Reusable subworkflow zip multiple files dynamically (compress)

⚑ 1,738 views Β· πŸ“ File Management

Description

πŸ“¦ Zip Multiple Files Dynamically

This template enables you to dynamically bundle multiple files into a ZIP archive. Designed to be used as a Subworkflow, it’s modular, flexible, and easy to integrate into various workflows. The output is a single ZIP file with a name that includes the current date, time, and fileName.

Shoutout: Code from: Tom (mutedjam)


πŸ‘€ Who is this for?

This workflow is perfect for:


❓ What problem is this workflow solving?

Manually zipping multiple files is:

This workflow automates the process and, as a Subworkflow, ensures:


πŸ”§ What this workflow does

  1. πŸ—‚οΈ Dynamically collects binary files from the input.
  2. πŸ“¦ Bundles them into a single ZIP archive.
  3. πŸ•’ Names the ZIP file with the current date, time, and a customizable fileName.
  4. βœ… Outputs the ZIP file, ready for storage or further processing.

βš™οΈ Setup

  1. πŸ”— Add this Subworkflow to your existing workflows.
  2. πŸ“₯ Pass the binary files as input to the Subworkflow.
  3. ▢️ Call the Subworkflow to generate a ZIP file.

πŸ› οΈ How to customize this workflow to your needs


πŸŽ‰ Why use this as a Subworkflow?

Instead of building a fixed ZIP functionality for every workflow, this template offers a reusable solution that can be integrated into many different workflows effortlessly. Save time and ensure consistency across your automation projects! πŸ’‘

πŸ”— Nodes Used

Execute Workflow Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup