Setting Node-Level SFTP Target Connector Properties

This section describes the required node-level properties you must set to use the SFTP target connector.

The following table describes the required node-level connector properties:

Property ID Property Name Description

SFTPTARGET

BASE64ENCODE

Specify if Base64 encoding is required for PUT requests or present GET requests. The values are:

  • Y. (Default.)

  • N.

See the SFTP Target Connector and Base64 Encoding section earlier in this topic for more information about this property and the property values.

SFTPTARGET

CHARSET

Specify the character set of the data on the SFTP server.

UTF-8 is the default value.

You can specify and use any of the standard character sets supported in the installed Java VM. Consult the Java docs for supported character sets.

For a PUT request the system converts the string to the character set specified before sending it to the SFTP server.

For a GET request the system converts the from the character set specified after it is read from the SFTP server.

This property has no effect on binary data transferred when the BASE64ENCODE property is set to N.

SFTPTARGET

METHOD

Specifies the type of SFTP request. Values are:

  • PUT. (Default.) Push the data to the SFTP server.

  • GET. Pull the data from the SFTP server.

SFTPTARGET

REMOTEFILENAME

Specify the file name to be used on the SFTP server.

For GET requests specify the name of the file to be retrieved from the SFTP server.

For PUT requests specify the file name to use when sending the data to the SFTP server.

SFTPTARGET

URL

Specify the location of the SFTP server.

The URL value references a URL object stored in the system. That URL object contains the actual address of the SFTP server, as well as any user name and password required to access it.

See Understanding URL Strings Versus URL Objects in the PeopleCode Developer’s Guide: Understanding the File Attachment Functions topic in the product documentation for more information..

SFTPTARGET

TEMPDIR

(Optional.) This property allows you to select the location on the application server where temporary files used during the file transfer process reside.

Unless you set this property to another location, temporary files are read and written to the PS_SERVDIR directory. Temporary files are automatically deleted after use.

If you set this property to a value other than PS_SERVDIR, the directory used is the concatenation of the value of the environment variable PS_SERVDIR and the value of the TEMPDIR property.

The value of the TEMPDIR property should include any necessary slash characters needed to form a correct directory path.

SFTPTARGET

ABSOLUTEPATH

(Optional.) This property is used in conjunction with the TEMPDIR property. The values are:

  • Y. The value of the TEMPDIR property is assumed to contain the value of a complete, absolute path to a location on the application server where temporary files can be written. The value PS_SERVDIR is ignored.

  • N. The value of the TEMPDIR property is assumed to contain a path pointing to a directory under PS_SERVDIR.

To specify optional properties you must add a row to the properties grid and manually enter the property ID, property name and value.