我正在使用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>
答案 0 :(得分:0)
Outbound将始终写入数据,在出站前使用选择路由跳过不需要的文件类型。