From f956f7adc0cd4f1f2d3c2de6b7eec8895ccb0a6b Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 22 Sep 2026 17:35:05 +0200 Subject: [PATCH] fix: send only the file name to Docling instead of the full storage path (#30357) With the Docling content extraction engine, every conversion request carried the server's full internal upload path (for example /app/backend/data/uploads/_report.pdf) as the multipart file name. Docling only needs a bare file name, and a hosted Docling instance has no business learning where Open WebUI keeps its files on disk. The loader now sends the base name of the stored file, which is what the MinerU, Datalab and Mistral loaders already do. Nothing else in the request or the parsed result changes, verified against a capturing mock server before and after. Fixes #30352 --- backend/open_webui/retrieval/loaders/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/retrieval/loaders/main.py b/backend/open_webui/retrieval/loaders/main.py index 74221f1aea..db25c479b7 100644 --- a/backend/open_webui/retrieval/loaders/main.py +++ b/backend/open_webui/retrieval/loaders/main.py @@ -273,7 +273,7 @@ class DoclingLoader: f'{self.url}/v1/convert/file', files={ 'files': ( - self.file_path, + os.path.basename(self.file_path), f, self.mime_type or 'application/octet-stream', )