Read Attachment
2
Serving Attachment Content Over HTTP
// Function node — set response headers for inline file serving
const contentType = msg.req.query.contentType
const filename = msg.req.query.filename
msg.headers = {
"Content-Type": contentType,
"Content-Disposition": 'inline; filename="' + filename + '"',
"Cache-Control": "no-store"
}
msg.statusCode = 200
return msgLast updated
Was this helpful?