# Upload File to Application

This is a pre-built action in Avo Assure and comes for the **Captured Image Element**, instructs the Avo Assure to upload a file present in a specific path from the local system to the application and save the result in dynamic variable.

#### **Syntax**

**Input Value:** `<File path>;<File name>;<Wait (in seconds)>`

| Argument                                      | Description                                                     |
| --------------------------------------------- | --------------------------------------------------------------- |
| <p>&#x3C;File path><br>(Required)</p>         | The complete path or location of the file from the local system |
| <p>&#x3C;File name><br>(Required)</p>         | The name of the specific file the user wants to upload          |
| <p>&#x3C;Wait (in seconds)><br>(Optional)</p> | Delay before the action is performed, specified in seconds      |

**Output Value**

| Argument                                                   | Description                                                     |
| ---------------------------------------------------------- | --------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>Optional) | This dynamic variable holds the status as **True** or **False** |

**Example**

**Performs file upload operation in the target application window**

The **Upload File to Application** action takes the value from the Input Value column (e.g., **C:\Documents;report.pdf;5**) and uploads the specified file to the application within the defined wait time. The result of the upload operation is stored in the **{Uploaded}** variable, with the following possible values:

* **True** – if the file is uploaded successfully.
* **False** – if the file upload fails or an error occurs.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FsrGm6PZqQB3Ws0tkGLjX%2Fimage.png?alt=media&#x26;token=596f4790-e7e0-422e-9c6f-4671b35f79d5" alt=""><figcaption></figcaption></figure>
