Attachment not being downloaded
Closed this issue · 1 comments
rashthedude commented
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?
rashthedude commented
I have also attempted:
var output = fs.createWriteStream(attachment.generatedFileName); attachment.stream.pipe(output);
Inside the attachment
event without avail.