Using “Mule Requester” and FTP loses originalFilename

大憨熊 提交于 2019-12-04 18:14:26

UPDATE: Below is an option for working with the requester, however, you can use the request-collection. The key is to realize that it will return a MuleMessageCollection and to use the Collection Splitter directly after the Requester, which will then returning individually the ftp file messages with the originalFilename.


After playing with this a while, I have found that with FTP in the mule requester you can get the filename only if you use it as a request, not request-collection.

Have not been able to get the request-collection to work if you need filenames associated.

So.... If you need multiple files, you need do something like loop on the requester until the payload is null.

If you have alternate methods please let me know.

I have written an alternate ftp-connector, it allows to issue a list-command in the flow, followed by a loop to read the files.

See: https://github.com/rbutenuth/ftp-client-connector/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!