fix: SVG uploads are sent as image input and rejected by every model
Before Submitting
- I searched open and closed issues and discussions for an existing report.
- I checked whether this is already fixed on the
devbranch or latest source. - I understand that maintainers want a well-written issue before any code pull request.
- I am using the latest available version of Open WebUI for my install method.
- This is not a security vulnerability.
Installation Method
Docker
Open WebUI Version
v0.11.3
Operating System
Debian 13
Browser
Firefox 140.15.0
Ollama Version
No response
Summary
in qwen-3-8 I got: cannot identify image file <_io.BytesIO object>
in gpt-5.5 I got: The image data you provided does not represent a valid image. Please check your input and try again with one of the supported image formats: ['image/jpeg', 'image/png', 'image/gif', 'image/webp']
when uploading a svg to a chat.
Expected Behavior
uploading svg file should either be handled as image (rendered as png in background) or as xml text. Prompt should not fail silently
Actual Behavior
prompt fails with:
in qwen-3-8 I got: cannot identify image file <_io.BytesIO object>
in gpt-5.5 I got: The image data you provided does not represent a valid image. Please check your input and try again with one of the supported image formats: ['image/jpeg', 'image/png', 'image/gif', 'image/webp']
when uploading a svg to a chat.
Steps to Reproduce
- open chat
- upload svg image
- ask what it sees in this image
- prompt fails
Logs, Screenshots, and Config
in qwen-3-8 I got: cannot identify image file <_io.BytesIO object>
in gpt-5.5 I got: The image data you provided does not represent a valid image. Please check your input and try again with one of the supported image formats: ['image/jpeg', 'image/png', 'image/gif', 'image/webp']
when uploading a svg to a chat.
Additional Information
Currently this is handled as plain image which does not apply to SVGs
Source: open-webui/open-webui