12min

Upload File

The action allows you to upload a file up to 1GB to your FTP/ sFTP server.

FTP connectionο»Ώο»Ώ

For our example we used Rebex.

Step 1:Β  Go to the Credentials Manager section and click Add New.

Step 2:Β  Give your credential a Name* and Description (optional) and click Next step.

Document image

Step 3:Β  Configure the FTP / sFTP connection as needed:

  • Port number* - the port number used by the server.
  • Protocol type - the protocol used depending on the encryption.
  • Directory path - the entry point of the server.
  • Authentication method - here you have the option to use a basic username and password authentication or a user key authentication.
Document image

Step 4:Β  Click Test connection and if successful click Save.

Create the processο»Ώο»Ώ

Step 1:Β  From the Process Designer section select Create new.

Step 2:Β  Give you process a name.

Step 3:Β  Drag the action Upload File on the canvas and link the action inside you process.

Document image

Step 4: Create the necessary variables.

  • ο»Ώ<%uploadFile%> - the File variable that will contain the file we will upload.
  • ο»Ώ<%success%> - the Boolean variable that will let us know if the upload was a success.
Document image

Step 5:Β  Click the Upload File action to access its configurations.

  • Node name* - gives you the option to change the actions name.
  • Select ftp server* - here we will select the connection created in the previous section.
  • Input file* - will contain the input file variable created in step 4.
  • Target Folder* - the path of the location where the file will be uploaded.
  • Result* - will hold the Boolean variable that will let us know if the upload was a success.
Document image

Step 6:Β  Save, Validate and Run the process.

ο»Ώ

Updated 27 Apr 2022
Did this page help?
Yes
No