Skip to Content
0

FTP Receiver adapter skip main payload

Jul 19, 2017 at 12:38 PM

39

avatar image

Hi

I have an ABAP Proxy -> PO sFTP adapter interface. When calling the Proxy i add a number of files as attachments (pdf, png etc.).

How can i set up the sFTP adapter in a way that only the attachments is stored on the FTP server - not the main payload itself?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Manoj K Jul 19, 2017 at 12:56 PM
0

Jakob,

if its SFTP then Use PayloadSwap bean and Don't tick "Keep Attachments"

Br,

Manoj

Share
10 |10000 characters needed characters left characters exceeded
Jakob Steen-Petersen Jul 19, 2017 at 04:14 PM
0

Hi Manoj

Good point - but i have multiple attachments in the call and i don´t know the name and the type of the attachments.

I.ex. i can have 3 attachments:

filexx1.pdf
filexx2.png
filexx3.txt

And i need to deliver all files to the FTP server

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Jakob,

In that case create 3 different receiver interfaces with 3 different channels with having swap bean with different attribute specific for each file type.

1st channel : Content-Type = application/pdf

2nd channel : Content-Type = image/x-png

3rd channel : Content-Type = text/plain

And in FTP channel i dont think you have option "keep attachment" just use the swap bean and see how it behaves.

Br,

Manoj

0

Hi Manoj

Ok this seems quite hopeless - the interface should be able to pass any filetype. The user could send multible files with various types. The types i provided was just an example....

But thanx for you answer....

0
Jakob Steen-Petersen

Jakob,

Unfortunately your FTP adapter can handle only one file at a time i.e mainpaylaod so only the main payload is dropped at target side now the only way to make your attachment as a mainpayload is via swap bean which replaces only one attachment at a time. So through single channel it not possible you to drop all the attachments. The other option is using ZipBean but note ZipBean includes all the attachments along with mainpayload too.

Br,

Manoj

0