Universal File Sharing: File messages enable seamless document and attachment sharing across all file types. From documents and spreadsheets to custom files, provide comprehensive file sharing capabilities with automatic validation and progress tracking.
File Messaging Overview
File messages provide comprehensive document and attachment sharing capabilities, allowing users to share any type of file with automatic upload processing, size validation, and cross-platform compatibility.Universal Support
Any file type sharing
- Documents (PDF, DOC, XLS, PPT)
- Archives (ZIP, RAR, 7Z)
- Code files and text documents
- Custom file types and formats
Smart Processing
Intelligent file handling
- Automatic size validation
- Format detection and validation
- Progress tracking during upload
- Error handling and recovery
Platform Implementation
- Mobile SDKs (iOS/Android/Flutter)
- TypeScript SDK
Unified file handling with automatic uploadMobile SDKs provide streamlined file messaging with automatic upload processing and validation, eliminating the need for separate upload steps.
Required Parameters
| Parameter | Type | Description |
|---|---|---|
subChannelId | String | Target subchannel identifier for the file message |
attachment | File/URI | Local file path or URI reference |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
fileName | String | Custom filename for the uploaded file |
caption | String | Text description or context for the file |
tags | Array<String> | Message categorization and filtering tags |
parentId | String | Parent message ID for threaded conversations |
metadata | Object | Custom properties for extended functionality |
Implementation Examples
Automatic Validation: Mobile SDKs automatically validate file size limits and handle upload processing with progress tracking and error recovery.
File Message Features
File Type Support & Validation
File Type Support & Validation
Comprehensive file format support and validationSupported File Categories
- Documents: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT, RTF
- Archives: ZIP, RAR, 7Z, TAR, GZ
- Code Files: JS, TS, PY, JAVA, CPP, HTML, CSS, JSON, XML
- Design Files: PSD, AI, SKETCH, FIG, SVG
- Any Custom Format: Support for any file type your application needs
- Size Limits: Platform-specific size limitations with clear error messages
- Type Detection: Automatic MIME type detection and validation
- Security Scanning: Integration points for virus and malware scanning
- Content Validation: Optional content validation for specific file types