Rocket.Chat Extended icon

Rocket.Chat Extended

Extended Rocket.Chat operations: channels, messages, threads, reactions, file upload, and more

Direct Message → Upload File

AI-generated

Summary

Upload a file to a Rocket.Chat direct message room

Inputs

  • roomId (required) — The ID of the direct message room where the file will be uploaded
  • binaryPropertyName (required) — The name of the binary field (e.g., from a previous node) that contains the file to upload
  • uploadAdditionalFields — Optional extra fields such as description or thread message ID to attach to the uploaded file

Output shape

An object representing the uploaded file, containing at least the file ID and any metadata returned by Rocket.Chat

The exact structure depends on the server response; typically includes an _id field and may include additional file properties.

Examples

Example 1: Upload a PDF to a DM with user 12345

roomId set to 12345, binaryPropertyName left as default (data), uploadAdditionalFields left empty

Example 2: Upload an image and set a description

roomId provided, binaryPropertyName = "data", uploadAdditionalFields { description: "Screenshot", tmid: "abc123" }

Example 3: Reply in a thread with a file

roomId provided, binaryPropertyName = "data", uploadAdditionalFields { description: "Report", tmid: "thread456" }

Links

Discussion