Upload file
This activity is used to upload a file from the system to the server in a specified directory.
Technical Reference:
INPUT |
FileName: Specify the name of the file with the path which has to be uploaded |
|
FtpFilePath: Specify the name of the directory in the FTP server where the file has to be uploaded |
||
MISC |
Display Name: Displays the name of the activity. You can also customize the activity name to help troubleshoot issues faster. This name will be used for logging purposes. |
|
SkipOnError: It specifies whether to continue executing the workflow even if it throws an error. This supports only Boolean value “True or False”. By default, it is set to “False” True: Continues the workflow to the next step False: Stops the workflow and throws an error. |
||
Version: It specifies the version of the FTP automation feature in use |
||
OUTPUT |
Result: Declare a variable here to see the result in an output box. This is not a mandatory field however declare a variable to get the result. |
* Mandatory fields to execute the workflow.
The following activity illustrates on how can use the upload activity from the FTP Automation feature to upload a file from the system to the server.
Example:
1. Drag and drop an upload activity from the FTP Automation feature tab.
2. Double click on the activity
3. The file to be uploaded along with the entire path address should be mentioned in the FileName box.
4. Enter the name of the directory in the server into which the file has to be uploaded.
5. Enter a variable as “Upload” in the result box from the properties panel.
6. Drag and drop a write log activity below the download activity.
7. Enter the variable as “ Upload.ToString” in the input string of the write log activity.
8. Enter the log level as “Info.”
9. Execute the activity.
The bot executes the activity and uploads the file in the given directory.