mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-28 08:09:33 -05:00
The published image runs Python 3.11, whose mimetypes table has no .md entry, and the slim base ships no /etc/mime.types. httpx then labels every Markdown upload application/octet-stream. Open WebUI only reads a file as plain text when the type is text/* or the extension is a known source extension, so with a content extraction engine configured (Docling, Tika) each .md went through that engine and came back re-rendered. Docling in particular breaks GFM tables that contain inline code. Fall back to text/markdown for .md and .markdown when mimetypes has no answer. Registering the type globally with mimetypes.add_type would also work but changes process-wide state for connectors that embed oikb.