首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Mule - Anypoint Studio -保存来自multipart/form-data请求的文件

Mule - Anypoint Studio -保存来自multipart/form-data请求的文件
EN

Stack Overflow用户
提问于 2018-02-08 15:35:08
回答 1查看 345关注 0票数 0

我正在使用Mule文件连接器将文件保存到从multipart/form-data http请求发送的目录中,我只需要保存带有.jpg, .pdf扩展名的文件,我如何过滤?我看到针对<file:inbound-endpoint的文件名过滤,但没有针对<file:outbound-endpoint的文件名过滤,感谢您的指点

代码语言:javascript
运行
复制
<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>
EN

回答 1

Stack Overflow用户

发布于 2018-02-26 22:24:53

出站将始终写入数据,对于不需要的文件类型,请在出站前使用选择路由跳过它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48679973

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档