mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #21598] bug: Images uploaded to chat are sent as file ID, not accessible URL, causing vision models to fail #58195
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 @kpasechnikov2 on GitHub (Feb 19, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21598
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.8.2
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04, browser upload (reproducible with Docker or git clone)
Browser (if applicable)
Chrome latest
Confirmation
README.md.Expected Behavior
When sending an image in chat (via browser upload), the image metadata's
urlproperty is only a file ID, not a full URL. As a result, when the chat message is sent to a vision model (e.g. GPT-4o, GPT-5.x, Azure, OpenAI etc), the backend/model cannot access the image and only gets the file ID, not the image bytes or a valid URL.1465c96b-e52d-4b41-a06a-223144f838aeinstead of/files/1465c96b-e52d-4b41-a06a-223144f838ae/contentor adata:image/...;base64,...string.I can help, but I need the actual image pixels to run OCR. The attachment you sent shows only a file reference (1465c96b-e52d-4b41-a06a-223144f838ae) and I can't access it from here.Actual Behavior
urlfield, not a real URL or base64 image.Steps to Reproduce
Logs & Screenshots
See network payload for file upload and final chat submission. Screenshot attached of model response:
Try with Azure Foundry, GPT-4o, vLLM, or any OpenAI-compatible vision endpoint. You will see only a file ID where a URL or image data is required.
Additional Information
How to fix:
${WEBUI_API_BASE_URL}/files/${file.url}/contentif the URL is a file IDReferences:
src/lib/components/chat/Chat.svelte(code link)src/lib/components/chat/MessageInput.svelte(code link)@pr-validator-bot commented on GitHub (Feb 19, 2026):
⚠️ Missing Issue Title Prefix
@kpasechnikov2, your issue title is missing a prefix (e.g.,
bug:,feat:,docs:).Please update your issue title to include one of the following prefixes:
Example:
bug: Login fails when using special characters in password@Classic298 commented on GitHub (Feb 19, 2026):
fixed in 0.8.3 read the changelog, also duplicate issue use the search