# Upload File

This is a pre-built Action located under the captured button element. The functionality of this Action in Avo Assure is to upload the specified file. The result is stored in a dynamic variable for further use during test execution.

## Syntax

**Input Value**: `<FolderPath>;<FileName>;<Wait(in seconds)>`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;FolderPath></td><td>Provide the path of the file you want to upload.</td><td></td></tr><tr><td>&#x3C;FileName></td><td>Provide the name of the file you want to upload.</td><td></td></tr><tr><td>&#x3C;Wait (in seconds)></td><td>Provide the time (in seconds) to wait before uploading the file.</td><td></td></tr></tbody></table>

**Output Value**: `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;Dynamic Variable>(Optional);&#x3C;Dynamic Variable>(Optional)</td><td>Both dynamic variable stores the status as <strong>True</strong> or <strong>False.</strong></td><td></td></tr></tbody></table>

{% hint style="info" %}
**Note**: When uploading a file to the application, specify the wait time in seconds. The upload starts automatically after the specified wait time.
{% endhint %}

### Example: Uploading a File to a Specified Location

In this example, we explain how to perform a file upload operation at a specified location using the **Upload File** action.

* **Action**: Upload File
* **Input Value**: C:\Users\Documents;Sample.pdf;2
  * The file path (**C:\Users\Documents**) specifies the folder path where the file is located.
  * The file name (**Sample.pdf**) represents the name of the file to be uploaded.
  * The wait (**2**) defines the wait time (in seconds) before initiating the upload operation.
* **Output Value**: {Status}
  * The result of the double click operation is stored in this **{Status}** dynamic variable with the following possible values:
    * **True**: If the file is uploaded successfully.
    * **False**: If the file is not uploaded successfully.
* **Logical Explanation**: The **Upload File** action takes the value from the **Input Value** column (**C:\Users\Documents;Sample.pdf;2**) and uploads the specified file (Sample.pdf) from the given path after waiting for the defined duration (2 seconds). The outcome of this operation is stored in the **{Status}** variable as true.

<figure><img src="/files/coYCAgMshWlE0O63a01p" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/web/button/upload-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
