我正在使用Mule文件连接器将文件保存到从multipart/form-data
http请求发送的目录中,我只需要保存带有.jpg, .pdf
扩展名的文件,我如何过滤?我看到针对<file:inbound-endpoint
的文件名过滤,但没有针对<file:outbound-endpoint
的文件名过滤,感谢您的指点
<file:outbound-endpoint path="." outputPattern="\archive\#[variable:Filename]" connector-ref="Documents" responseTimeout="10000" doc:name="Save document"/>
<file:connector name="Documents" autoDelete="true" streaming="true" validateConnections="true" doc:name="File" writeToDirectory="temp" recursive="true">
</file:connector>
发布于 2018-02-26 22:24:53
出站将始终写入数据,对于不需要的文件类型,请在出站前使用选择路由跳过它。
https://stackoverflow.com/questions/48679973
复制相似问题