web file upload.md

Web File Upload

The Web File Upload block is used to upload files, such as spreadsheets, text files, PDFs, and other documents, to a web page in an already open browser window. It works only with browser windows that were opened using the Start Web Browser block or their child windows.

The block locates a file-upload control on the page and uploads a file either from a stored Data File in Leapwork or from a Local Path on disk or a network share.

See the many different Learning Center video examples of how this works.

Fully expanded, the Web File Upload block shows the following properties:

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 Web File Upload onto the canvas.
  2. Capture the upload control in Select File Upload Element (required), choose a Source type (Data File or Local Path), and define the file using Select Data File to Upload or Path To File. Optionally adjust parameters such as Use occurrence, Default timeout, Scroll to find, Await DOM change, Await Requests.
  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.
Strategy Editor Guidelines for understanding and using the Strategy Editor in Leapwork to define, refine, and validate robust locator strategies for UI elements using DOM structure, tokens, and wildcards.