Skip to main content

Overview

The File plugin handles messages of type file in category message. It renders a file card showing the file name, size, extension icon, and a download button with progress indicator.
Live Preview — interact with the file message bubble.Open in Storybook ↗

Bubble Rendering

  • File card — displays file icon (based on extension), file name, and formatted file size
  • Download button — click to download with progress indicator (uses downloadWithProgress utility)
  • Multiple files — expand/collapse list showing all attachments
  • Caption — rendered below the file card, formatted with text formatters
  • Pending state — shows file info from local metadata while uploading (no download button)

Context Menu Options

Same as Image Plugin — standard media options (React, Reply, Reply in Thread, Info, Delete, Report, Mark Unread, Message Privately).

Conversation Preview

Returns: File (localized via conversation_subtitle_file key)

CSS Selectors