Compress File | Leapwork Docs

The Compress File block generates a ZIP archive from one or more input files during the execution of a flow. This is especially useful when you need to pass multiple files to downstream blocks (for example Send email or Web File Upload) as a single attachment.

When fully expanded, the following is an example of the Compress File block:

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Compress File onto the canvas.
  2. Add one or more files in Files (either by using Add File or by connecting file outputs from earlier blocks).
  3. Run the flow when it’s ready and connect Zip File to the next block that should use the compressed file.

Building block parameters

Parameters

All selected files are packaged together when the block executes.

Use this connector to branch the flow for error handling, logging, or retry logic.

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.