# 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FLZQ6uFkOkgPcnIyfNvel%2Fimage.png?alt=media&#x26;token=c1f2563e-9576-4aac-ab87-c34f9ad55bb3" alt=""><figcaption></figcaption></figure>
