Integration Cloud 6.1.0 | Applications | Predefined Applications | File Transfer Protocol (FTP/FTPS) | FTP Predefined Operations | putFile
 
putFile
Transfers a file to a remote FTP server.
Input Parameters
remoteFile
String The name of the remote file.
transferType
String FTP file transfer mode (ascii or binary). The default is ascii.
writeOption
String Optional. Indicates whether to send a STOR or a STOU (Store as Unique File) command to the remote FTP server. Set to:
*true to send a STOU (Store as Unique File) command.
*false to send a STOR command. This is the default.
contentStream
java.io.InputStream, byte[ ], or String Data to be transferred to the remote file.
Output Parameters
statusCode
String Standard FTP protocol status code.
statusMessage
String Standard FTP protocol status message.
Usage Notes
Some FTP servers do not support “putting” a unique file. When using the putFile operation to put a unique file to an FTP server that does not support putting a unique file, you may encounter the following error:
com.wm.app.b2b.server.ServiceException: 500 'STOU': command not understood.