Skip to main content

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

TypeExtensions
ImagesPNG, JPG, GIF, WebP
DocumentsPDF

Limits

  • Up to 5 files per message
  • 10 MB maximum per file

How it works

  1. The user clicks the attachment icon (paperclip) in the message input.
  2. Files are uploaded to POST /api/files and stored as base64 data URLs in the files table.
  3. When the message is sent, the file references are included in the API request alongside the text.
  4. 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.