【发布时间】:2020-07-20 20:48:25
【问题描述】:
我正在尝试使用 FTP 连接器将文件从本地计算机复制到 FTP 服务器。 它运行良好,复制也可以,但在 FTP 服务器上我只能保存 dat 文件。 有没有办法指定文件名?
【问题讨论】:
我正在尝试使用 FTP 连接器将文件从本地计算机复制到 FTP 服务器。 它运行良好,复制也可以,但在 FTP 服务器上我只能保存 dat 文件。 有没有办法指定文件名?
【问题讨论】:
假设 Mule 4,您只需使用 path attribute 指定名称:
<ftp:write config-ref="FTP_Config" doc:name="Write" path="demo.txt">
...
在 Mule 3 中有一个类似的 outputPattern 属性。例如to carry the original file name from a previous operation:
<file:outbound-endpoint path="/some/directory" outputPattern="#[message.inboundProperties.originalFilename]"/>
【讨论】: