Skip to main content

Upload File

Description

This Activity uploads the specified file to the web.

Properties

Input

  • Element Path – XPath stands for XML Path Language for locating any element on the webpage. Specify the XPath of the file input control present on the web page. Please encode the XPath if it contains special characters. For more information, refer to XPath Encoding.
  • File Path – The absolute path of the file to upload into the given file control of a web page.
  • Web Page – It specifies the webpage object of the currently opened web page.

Misc

  • DisplayName – Add a display name to your Activity.
  • Private – By default, Activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.

Optional

  • Continue On Error – It Specifies whether the automation should continue even when the Activity throws an error. If True, the Activity continues without throwing any exceptions. If False, the Activity throws an exception. The default value is False.
    note

    It does not catch an error if this Activity is present inside the Try-Catch block and the value of this property is True.

  • Timeout—An argument of type TimeSpan defines the duration of the Activity before an error occurs and the workflow terminates. By default, the timeout is 10 minutes.

Output

  • Result – If the file upload is successful, display the result as True; otherwise, it will be false.

Example

Download Example

Upload File