# Upload File to Application

This is a pre-built Action located under the captured image element. The functionality of this action in Avo Assure is to upload a file from the specified local system path to the application. The result is stored in the given dynamic variable for further use during test execution

## **Syntax**

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

| Argument                                  | Description                                                                        |
| ----------------------------------------- | ---------------------------------------------------------------------------------- |
| <p>\<File path><br>(Required)</p>         | Provide the path or location of the file you want to access from the local system. |
| <p>\<File name><br>(Required)</p>         | Provide the name of the specific file you want to upload.                          |
| <p>\<Wait (in seconds)><br>(Optional)</p> | Provide the time in seconds you want to wait before the action is performed.       |

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

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

**Example: Uploading a File to the Target Application Window**

In this example, we explain how to perform a file upload operation in the target application window by providing the required file path, file name, and wait time.

* **Action**: Upload File to Application
* **Input Value**: C:\Documents;report.pdf;5
  * The first argument (**C:\Documents**) specifies the folder path where the file is located.
  * The second argument (**report.pdf**) specifies the name of the file to be uploaded.
  * The third argument (**5**) specifies the wait time (in seconds) allowed for the upload operation to complete.
* **Output Value**: {Status}
  * The result of the upload operation is stored in the **{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 to Application** action reads the folder path, file name, and wait time from the **Input Value** column (e.g., **C:\Documents;report.pdf;5**). The action locates the specified file in the provided folder path and attempts to upload it to the target application during execution. The wait time determines how long the action should wait for the upload process to complete. The result of the upload operation (**True**) is stored in the **{Status}** variable.

<figure><img src="/files/lL1fwpp4OQI5JRC2lXPM" 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/image/upload-file-to-application.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.
