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.
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.
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.