File Attachments
Send various file types including images, videos, documents, and archives with rich type-specific display.
How to Attach Files
Method 1: Click to Upload
- Click the attachment icon (paperclip) in the message input
- Select file(s) from your device
- Preview thumbnails appear below the input
- Send — Files are uploaded and displayed
Method 2: Drag and Drop
- Drag files from your desktop/file manager
- Drop onto the chat message area
- A "Drop files here" overlay appears during drag
- Preview thumbnails appear after dropping
- Send — Files are uploaded and displayed
Supported File Types
| Category | Extensions | Display |
|---|---|---|
| Images | jpg, jpeg, png, gif, webp, bmp, tiff, svg, heic, avif, ico | Inline gallery grid |
| Video | mp4, webm, avi, mov, mkv | Inline video player |
| Audio | mp3, wav, ogg, m4a, webm | Inline audio player |
| Documents | pdf, doc, docx, txt, rtf | Icon card with download |
| Archives | zip, rar, 7z, tar, gz | Icon card with download |
Features
Image Gallery
Single images display inline. Multiple images are grouped into a gallery grid:
- 1 image: Full-width display
- 2 images: Side-by-side grid
- 3+ images: Grid with overflow count badge
Video Player
Videos display with a built-in player:
┌─────────────────────────────────┐
│ ┌─────────────────────────────┐ │
│ │ │ │
│ │ ▶ Play │ │
│ │ │ │
│ └─────────────────────────────┘ │
│ ▶ ───────○──────────── 2:30 │
│ │
│ video.mp4 (15.2 MB) │
└─────────────────────────────────┘
Audio Player
Audio files display with playback controls:
┌─────────────────────────────────┐
│ 🎵 audio.mp3 │
│ │
│ ▶ ───────○──────────── 3:45 │
│ │
│ ✓✓ (blue) 10:50 │
└─────────────────────────────────┘
Document/Archive Cards
Other file types display as cards with icons:
┌─────────────────────────────────┐
│ 📄 document.pdf │
│ │
│ Size: 2.4 MB │
│ │
│ [Download] │
└─────────────────────────────────┘
Batch Uploads
Files sent together are grouped by batch_id:
- Select multiple files at once
- All files upload as a single batch
- Images in the same batch are displayed together in a gallery
- Other files in the batch are listed individually
Technical Details
- Storage: Files stored using platform's storage system (local or cloud)
- Size limit: Configurable via
CHAT_FILE_MAX_SIZE(default: 10MB) - Security: File type validation, virus scanning (if configured)
Drag and Drop
The drag-and-drop feature provides a seamless upload experience:
- Drag enter — Full-area overlay appears with upload icon
- Drag leave — Overlay hides (with counter for nested elements)
- Drop — Files are extracted and added to upload queue
- Preview — Thumbnails appear before sending
Tips
- Batch uploads — Select multiple files at once for efficiency
- Image previews — Review images before sending
- File naming — Use descriptive file names for clarity
- Compression — Compress large files before sending
Last updated: September 2026
Still stuck?
Our support team is ready to help you get set up.

