File Attachments
The Chat SDK supports sending files and images, and reading attachments from incoming messages.Sending Files
Attach files when posting messages:FileUpload Interface
Sending Images
Images are uploaded the same way:Multiple Files
Send multiple files in one message:Files with Cards
Attach files to card messages:Reading Attachments
Access attachments from incoming messages:Example: Processing Image Attachments
Fetching Private Files
Some platforms (like Slack) require authentication to download files:File Metadata
Access file information without downloading:MIME Types
Common MIME types:Example: File Upload Bot
Collect files and generate a summary:Platform Support
Slack
- ✅ Upload files via API
- ✅ Download files with authentication
- ✅ Image, video, audio, and document attachments
Microsoft Teams
- ✅ File attachments in cards
- ✅ Download via public URLs
- ⚠️ Upload requires additional setup
Google Chat
- ✅ Image attachments in cards
- ✅ Download via public URLs
- ⚠️ Limited file upload support
File Size Limits
Each platform has different file size limits:- Slack: 1 GB (free tier: varies)
- Microsoft Teams: 250 MB
- Google Chat: 200 MB
Complete Example: Document Processor
Next Steps
Cards
Display file metadata in rich cards
Error Handling
Handle file upload and download errors