Wоrkflоws
Tasks aka Nodes
FTP
11min
the ftp node is useful for accessing and uploading files to an ftp (file transfer protocol) or sftp (secure shell file transfer protocol) server the node supports only non binary file formats, such as csv and html activate or deactivate the node if the node is inactive, the node will be skipped( 1 1 ) create new or find already created credentials ( 2 2 ) file transfer protocol ftp or sftp ( 3 3 ) choose one of the operations delete, download, list, rename, upload ( 4 4 ) the file path of the file to upload it has to contain the full path ( 5 5 ) the text content of the file to upload ( 6 6 ) if active, the workflow continues even if this node's execution fails ( 7 7 ) protocol methods ftp account use this method if your ftp server doesn't support ssh tunneling or encrypted connections sftp account use this method if your ftp server supports ssh tunneling and encrypted connections ftp credentials name for credentials ( 1 1 ) enter the name or ip address of your ftp server's host ( 2 2 ) enter the port number the connection should use ( 3 3 ) enter the username the credential should connect as ( 4 4 ) enter the user's password ( 5 5 ) sftp credentials use this method if your ftp server supports ssh tunneling and encrypted connections the required fields are the same as those for ftp, with a few additional fields private key enter a string for either key based or host based user authentication private key format provide your private key in openssh format this key is typically generated using the ssh keygen o parameter for example ssh keygen o a 100 t ed25519 passphrase (if applicable) if your private key is encrypted, enter the passphrase used to decrypt it if no passphrase is set, leave this field blank operations delete a file or folder download a file list will show the folder content rename or move a file or folder upload a file delete this operation includes one parameter path enter the remote path that you would like to connect to delete option the delete operation adds one new option folder if you turn this option on, the node can delete both folders and files this configuration also displays one more option download configure this operation with these parameters path enter the remote path that you would like to connect to binary property enter the name of the output binary field to put the file in list configure this operation with these parameters path enter the remote path that you would like to connect to recursive select whether to return an object representing all directories/objects recursively found within the ftp/sftp server (turned on) or not (turned off) rename configure this operation with these parameters old path enter the existing path of the file you'd like to rename in this field new path enter the new path for the renamed file in this field сreate directories option if you turn this option on, the node will recursively create the destination directory when renaming an existing file or folder upload configure this operation with these parameters path enter the remote path that you would like to connect to file content enter the text content of the file you'll upload in this field to attach a file for upload, you'll need to use an extra node such as the convert to file node or the http request node to pass the file as a data property example uploading a file with ftp ensure the node is active so it functions correctly ( 1 1 ) choose ftp from the available protocols ( 2 2 ) select an existing ftp credential cars ( 3 3 ) select the appropriate operation to upload a file ( 4 4 ) enter the correct path in the following format( 5 5 ) /yourfoldername/contact csv ensure the path starts with "/" replace "yourfoldername" with the correct folder name ensure the file name includes the correct extension ( csv) enter the file's content using the computed expression ${json data} should be in the computed expression( 6 6 ) leave this option disabled to stop the process if an error occurs ( 7 7 )