File Uploads
Users can attach files directly in the chat interface. Nibchat stores them server-side and includes them in the conversation as vision/document context.
Supported file types
| Type | Extensions |
|---|---|
| Images | PNG, JPG, GIF, WebP |
| Documents |
Limits
- Up to 5 files per message
- 10 MB maximum per file
How it works
- The user clicks the attachment icon (paperclip) in the message input.
- Files are uploaded to
POST /api/filesand stored as base64 data URLs in thefilestable. - When the message is sent, the file references are included in the API request alongside the text.
- The LLM receives the files as multimodal content (images are sent as
image_url, PDFs as base64 document blocks).
Attached files in history
Files attached to past messages are displayed as thumbnails in the conversation history. When you load a previous conversation, Nibchat re-fetches the associated files and re-attaches them to the correct messages.
Model support
File uploads require a model that supports vision/multimodal input. Ensure your selected model supports image and/or document input.