Actions53
- Channel Actions
- Direct Message Actions
- Message Actions
- User Actions
Direct Message → Upload File
AI-generatedSummary
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" }