FTPCaller
Uploads and downloads data from an FTP server. The transformer allows uploads from attribute values or from a file. Remote files may be downloaded into a local file, or into a feature attribute. The transformer also supports deleting remote files.
变压器支持FTP,FTPS和SFTP协议。
Output Ports
Features which have been successfully processed will be output through this output port.
如果an FTP operation fails for any reason, the feature will be output through this output port. An error message will be placed in the attribute named in the错误属性范围。
Parameters
转移参数
This parameter is used to specify a remote file on the FTP server.
The转移类型参数表示变压器将执行的FTP操作类型。这组可能的操作是:
- Download to an Attribute: The remote file specified in theURL参数将下载到中指定的属性中Target Attribute范围。该属性将被标记为命名的编码Attribute Encoding参数 - 将执行实际编码转换。
- Download to a File: The remote file specified in theURLparameter will be downloaded to the local file named in theTarget File范围。如果the local file already exists, it will be overwritten with the contents of the remote file.
- 从属性上传:给出的数据Upload Data参数将上载到指定的远程文件URL范围。
- 从文件上传: The local file named in theFile to Upload参数将上载到指定的远程文件URL范围。如果本地文件不存在,则该功能将通过该功能输出<拒绝>output port.
- 删除远程文件: The remote file specified in theURL参数将从FTP服务器中删除。
连接参数
Use this parameter to control the type of connection which is used to transfer data between FME and the FTP server. WhenActiveis selected, the server will connect to FME when transferring data. WhenPassive选中,连接已反转,FME连接到服务器。某些服务器和网络防火墙仅允许其中一个连接类型,因此有时可以通过更改连接类型来修复失败的传输。最常用的连接类型是Passive,这是此参数的默认值。
An FTP upload or download can be performed in binary mode or ASCII mode. When using ASCII mode, the FTP server may perform some text conversions. For example, to convert UNIX line terminators into Windows line terminators, or vice-versa. When using binary mode, all data will be transferred without any modifications. By default, binary mode is used, which should be acceptable in almost all situations.
如果this parameter is set to是的, the transformer will verify SSL certificates when connecting to an FTPS server. This is done in two stages:
- Ensure that the certificate is for the host we are trying to connect to.
- Ensure that the certificate is valid.
功能输出虽然<拒绝>输出端口将在此参数名为的属性中具有错误消息。
Authentication Parameters
此参数确定如何验证与FTP服务器的连接。
This is the username of the user which will be accessing the FTP server. This parameter is only used whenAuthentication Typeis notNone / Anonymous.
这是访问FTP服务器的用户的密码。此参数仅在Authentication Typeis密码.
Proxy Parameters
Select the proxy type which will be used in this transformer. IfNoneis selected, no proxy will be used. IfUse FME Network Proxy Settings选择了,将使用FME设置页面中定义的代理设置。如果Native FTP Proxyis selected, the transformer will use an FTP proxy configured using the other parameters in this section.
这是将使用的代理服务器的主机名。
This is the username of the user which will be accessing the proxy server. This can be different than the username used when accessing the FTP server.
This is the password of the user which will be accessing the proxy server.
编辑变压器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter Menu Options.
变压器类别
FME Licensing Level
FME Professional edition and above
Search FME Knowledge Center
Search for samples and information about this transformer on theFME Knowledge Center.