【问题标题】:Is there a way to set filename on ftp connector on Mulesoft?有没有办法在 Mulesoft 的 ftp 连接器上设置文件名?
【发布时间】:2020-07-20 20:48:25
【问题描述】:

我正在尝试使用 FTP 连接器将文件从本地计算机复制到 FTP 服务器。 它运行良好,复制也可以,但在 FTP 服务器上我只能保存 dat 文件。 有没有办法指定文件名?

【问题讨论】:

    标签: ftp mulesoft


    【解决方案1】:

    假设 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]"/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-13
      • 2023-02-07
      • 2021-04-19
      • 1970-01-01
      相关资源
      最近更新 更多