Closed rashthedude closed 5 years ago
I have set "attachments" to true and specified the directory folder "attachments/" for attachmentOptions but the file is not being downloaded. Do I have to manually create a stream and consume or what is the proper way of downloading the file?
true
attachmentOptions
I have also attempted:
var output = fs.createWriteStream(attachment.generatedFileName); attachment.stream.pipe(output);
Inside the attachment event without avail.
attachment
I have set "attachments" to
true
and specified the directory folder "attachments/" forattachmentOptions
but the file is not being downloaded. Do I have to manually create a stream and consume or what is the proper way of downloading the file?