mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #18514] issue: Incorrect logic when uploading an image into a collection #18620
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chayaziv on GitHub (Oct 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18514
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.32
Ollama Version (if applicable)
No response
Operating System
Windows 10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When you upload an image to a collection, and 'content extraction engine' is document intelligence, there will be an appropriate alerts that informs you that the file has been added successfully but the extract content is not available for this file.
Actual Behavior
The system tries to upload the file and it remains in the pedding state forever, the user sees a spinner that spins and does not finish without any appropriate message.
Steps to Reproduce
Logs & Screenshots
Additional Information
🛠 Root Cause Analysis
The issue is in the file:
backend/open_webui/routers/files.pyat lines 114-117:The Problem:
When a JPEG file (or any image) is uploaded without an external content extraction engine configured:
elifcondition evaluates to FALSE (it IS an image AND no external engine)process_file()is NOT calledelseclause exists to handle this caseWhy it happens:
file.content_type = "image/jpeg"not file.content_type.startswith(("image/", "video/"))→ FALSECONTENT_EXTRACTION_ENGINE == "external"→ FALSE (CONTENT_EXTRACTION_ENGINE set to 'document_intelligence' )💡 Proposed Fix
Add the missing
elseclause in the file:backend/open_webui/routers/files.py(after line 117)What this fixes:
@silentoplayz commented on GitHub (Oct 24, 2025):
PR is welcome!
@tjbck commented on GitHub (Oct 28, 2025):
Addressed with
f524a6a8e7in dev!