#30100·open-webui

fix: SVG uploads are sent as image input and rejected by every model

Author: maurerleCreated Sep 17, 2026Updated Sep 17, 2026
Labelsbug

Before Submitting

  • I searched open and closed issues and discussions for an existing report.
  • I checked whether this is already fixed on the dev branch 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

  1. open chat
  2. upload svg image
  3. ask what it sees in this image
  4. 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

related https://github.com/open-webui/open-webui/pull/30099