mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #23263] issue: Images uploaded but not sent to vision-capable models #35464
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 @savagezhao-ai on GitHub (Mar 31, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23263
Bug: Images uploaded but not sent to vision-capable models
Description
When uploading an image in Open WebUI and sending it to a vision-capable model (e.g., Qwen3.5-9B via oMLX), the model responds that no image was uploaded, even though the image appears to be attached in the UI.
Root Cause
In
backend/open_webui/routers/files.py(lines 122-132), when a file withcontent_typestarting withimage/is uploaded, the code checks:If
CONTENT_EXTRACTION_ENGINEis not set to'external', image files are processed but no URL data is generated. The file is stored with an emptydata: {}field, so whenprocess_chat_payloadinmiddleware.pytries to inject the image into the message content asimage_url, there's no URL to inject.Reproduction Steps
CONTENT_EXTRACTION_ENGINEenvironment variableExpected Behavior
Images should be properly processed and their URLs injected into the message content for vision models, regardless of
CONTENT_EXTRACTION_ENGINEsetting.Workaround
Set the environment variable:
Suggested Fix
Images should always have their URL generated in
datafield, independent of content extraction engine configuration. TheCONTENT_EXTRACTION_ENGINEshould only affect text extraction, not basic image URL availability for vision models.Environment
Related Code
backend/open_webui/routers/files.py- lines 100-135backend/open_webui/utils/middleware.py- lines 2148-2171 (image injection logic)@leanderchandra1231-debug commented on GitHub (Mar 31, 2026):
Thanks for the detailed report and clear root cause analysis—this is very
helpful.
On Tue, Mar 31, 2026, 8:55 AM savagezhao-ai @.***>
wrote:
@tjbck commented on GitHub (Apr 1, 2026):
Unable to reproduce, base64 image is correctly forwarded for openai endpoints.