MEGA (Legacy) icon

MEGA (Legacy)

Legacy type ID of the MEGA node, kept so existing workflows keep running. Use @clubmega/n8n-nodes-mega.mega in new workflows; both types have the same parameters.

Actions408

Conversation → Download Attachment

AI-generated

Summary

Download a conversation attachment either by specifying its Attachment ID within a given account, inbox, and conversation context, or directly by its URL.

Inputs

  • Download Mode (required) — Choose 'By Attachment ID' to download using accountId, inboxId, conversationId, and attachmentId, or 'By URL' to download using a direct attachmentUrl.
  • Account (required) — Select the account to use when downloading attachment by Attachment ID.
  • Inbox (required) — Select the inbox within the account to use when downloading attachment by Attachment ID.
  • Conversation (required) — Select the conversation within the inbox to use when downloading attachment by Attachment ID.
  • Attachment (required) — Select the attachment to download by its ID when using 'By Attachment ID' mode.
  • Attachment URL (required) — Provide the exact URL of the attachment when using 'By URL' mode.
  • Allow External URLs — Optionally allow downloading attachments from URLs outside the configured MEGA instance when using 'By URL' mode. Use caution as this may expose untrusted content.
  • Output Binary Property (required) — Specify the name of the binary property to write the downloaded attachment's data to.

Output shape

a single binary data property containing the downloaded attachment content

The downloaded data is available in the binary property named as specified by the 'Output Binary Property' input. No other JSON data is returned. The operation supports two download modes: by attachment ID within a specified account/inbox/conversation context, or by a direct URL with optional external URL allowance.

Links

Discussion