Upload Storage file action

Files can be uploaded to a bot for further processing using the Upload Storage file action.

Recommended Configurations

When using the Upload Storage file action, we recommend that you configure the following settings and variables: Shows correct variables for the Upload Storage file action.

  • Save the file as a variable using File type and mark as input. This variable is then selected as the File input variable for the action.
    Note: Variable is the only valid option because the file is stored in the bot run device through this predefined variable.
  • Enter the full path for the exact location of the file on the desktop or local device.
  • Assign the result to a String variable that holds the storage path for the file after upload. This output variable must be a String and should be used to feed a Select File element of a form or another File input variable of a bot.
Note: Most major MIME types are supported such as: PNG, JPEG, CSV, XLS, PDF, EXE, and DLL.

Example: Bot needs to attach a file in the middle of a process

To enable a bot to attach a file in the middle of a process:

  1. Build a form using the Document element.
  2. Build a bot that contains the following variables as shown:
    • File variable as input (such as File_Reference_In_Storage)
    • String variable as output (such as File_Path_In_Storage)
    Added user variables
  3. Include the bot as part of a Bot Task in the same process.
  4. Select the Upload option for the File input variable (File_Reference_In_Storage):

    Upload input value

  5. Include the form as part of a Human Task in a process after the Bot Task.
  6. Feed the String variable output (File_Path_In_Storage) of the Bot Task into the Document element input of the Human Task:

    Feed data into form

  7. Use the Upload Storage file command with the File input variable (File_Reference_In_Storage): Upload Storage file action
    • The file located at the local path (c:/Desktop/MyFile.pdf) will be uploaded to the storage.
    • The reference of that file in the storage will be stored in the String variable which can be used for further processing inside the process.
    • In this example, the Document element will use that reference and render the file in a form.