elasticio / sftp-component

SFTP component for the elastic.io platform
Apache License 2.0
2 stars 3 forks source link

Renaming of Attachments #15

Closed benburch closed 4 years ago

benburch commented 5 years ago

When files are written to the SFTP destination the filename is a GUID that was generated by the platform. Can we add support for custom file naming, the filename can be set by the user in the mapping expression?

zubairov commented 5 years ago

What if a message contains multiple attachments? How mapping would work in this case?

benburch commented 5 years ago

What if a message contains multiple attachments? How mapping would work in this case? With difficulty...

The other route is to change the behaviour on Attachment creation, I guess the way around this is to create the attachment in a unique path with a user defined filename?

zubairov commented 5 years ago

We can let a user to provide a pattern (as field not in metadata) that will be used for to generate a name for a file when storing it

jhorbulyk commented 4 years ago

Possible solution provided in https://github.com/elasticio/sftp-component/issues/28