elasticio / sftp-component

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

Don't create attachments that are too big #51

Closed jhorbulyk closed 4 years ago

jhorbulyk commented 4 years ago

An error should be thrown before trying to create an attachment, if the attachment would exceed the maximum allowed attachment size. The maximum allowed attachment size should be read as an environment variable.

jhorbulyk commented 4 years ago

Before writing any files from an SFTP server to Steward, the size of the file should be checked. If it is above the threshold, an error should be emitted and no data transfered to Steward.