set file.md

Set File

The Set File block uploads or defines a file as an input so it can be used by downstream blocks in an automation flow (for example, attaching a PDF to an email or passing a file to another block for processing). Available from 2025.1 onward.

When fully expanded, the following is an example of the Set File block with sample data:

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 Set File onto the canvas.
  2. Connect the block in the flow and specify Source type and the corresponding file input (for example select a file when using Data file or Local path).
  3. Run the flow when it's ready.

Building block parameters

Parameters

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.