Files
oikb/tests
djlongy 191fae4afb fix: send Markdown uploads as text/markdown
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.
2026-09-23 18:24:42 +10:00
..