cancel
Showing results for 
Search instead for 
Did you mean: 

Having multiple files in one message as attachments - SFTP sender adapter

former_member560382
Participant
0 Kudos

Hi guys,

I am wondering if it is possible to pick up multiple files and send them all in one message as attachments. For example, I have files file1.txt, file2.txt, file3.txt, ....

My business requirement is to ZIP specific files based on a filemask into one file and place it to target directory as 1 file. So I thought to pick up multiple files and planned to use PayloadZipBean to create a single target file.

Any advice

Thanks, Peter

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi Peter,

I think there is no standard way to achieve and OS script may be an option. You can execute OS command before picking up the file to zip it and then transfer the zip via the interface.

regards,

Harish

former_member190293
Active Contributor
0 Kudos

Hi Harish!

The point is that OS command is executed after source file is picked up by adapter and before it is sent to messaging system.

Regards, Evgeniy.

Harish
Active Contributor
0 Kudos

Hi Evgeniy,

I experienced the OS script execution before message processing for one the interface, where we need to pick CSV and PDF file, the files need to zip and send to the receiver. The OS script worked for this. Not sure if there is any way to perform this after picking up the file.

regards,

Harish

Answers (1)

Answers (1)

former_member560382
Participant
0 Kudos

This is not possible in a standard way. Finally a resolved the problem by writing an adapter module which pick up each file separately and at the receiver side collects file into a zip file.