elasticio / sftp-component

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

Allow upsert file to upload to a temporary file first #97

Open jhorbulyk opened 2 years ago

jhorbulyk commented 2 years ago

Other Feature Request

Description

The component upload files to the SFTP as streams. This means a file becomes visible immediately, but it takes some time to upload everything. It is possible that another process could grab a partially ready file. One way to solve this is to first upload the file to a temporary path and then move the file into its final position. This can currently be done by placing the move file action after the upsetFile action. However, it would be convenient if this behavior was included as part of this action as an optional behavior.

Definition of Done

There is an optional checkbox in the component. When checked we save that file as Chrome does (e.g. with .part extension) and rename the file once uploading is completed.