Upload File

Use this step to send file to SFTP server.

Last published at: September 10th, 2025

sftpSendFile Step

Description:

This step uploads the file to the SFTP server. 

 

Inputs

  • sftpConnection – Select the SFTP connection from dropdown
  • sourceFilePath – The physical path of file to be uploaded to server. Ex: - C:\Folder1\uploadText.txt
  • destinationFilePath –The relative path of the file to save in SFTP server. Ex: - /folder1
  • relativeFilePath - variable or global to store the relative file path
 

 

Returns

  • True – step executed successfully
  • False – step failed to execute 
 

 

Usage:

 

 

To use this step, configure SFTP in FlowWright's SFTP Connections.

 

A sample connection configuration is provided below for reference. 

 

Example:

Let’s build and execute the “sftpSendFileDef” example.          

  • Create a new definition called “sftpSendFileDef” and open the definition in designer mode. 
  • Drag an “sftpSendFile” step to the canvas. 
  • Connect the dots between the “Start” and “sftpSendFile” steps, as shown above. 
  • Define a variable or a global to store the result. 
  • Click the “sftpSendFile” step to configure its “Required” properties. Select the “SFTP” connection string from the dropdown. Provide the local path to the source file to upload. Provide the relative path to store the file on the server. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • Click the “sftpSendFile” step to configure its “Optional” properties. Provide a variable or a global reference to store the relative file path.

 

  • The “Logging” configuration is necessary for documentation and also measures workflow progress and percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a new instance, and execute it. Render the process instance. Click the process step to view its properties. The step should upload the file to the SFTP server.

 

Definition Sample:

You may download the sample definition(s) from the link here and later import them (drag-and-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.

Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after the import. Then, save the definition to confirm the changes.

Click here to download the sample file.