Skip to content

issue: wrong audio file path on Windows #23444

@daniporr

Description

@daniporr

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

v0.8.12

Ollama Version (if applicable)

No response

Operating System

Windows 11

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Ensure the audio file is loaded correctly.

Actual Behavior

The audio file failed to load.

Steps to Reproduce

  1. Install on Windows 11 using pip
  2. Open a new chat
  3. Attach an audio file
  4. The loading wheel keeps spinning but in the console you can see an error like:
ERROR    | open_webui.routers.audio:is_audio_conversion_required:113 - Error getting audio format: [WinError 2] Impossibile trovare il file specificato
Chunk paths: ['C:\\...\\uploads/xxxxx.mp3']

As you can see, the final path separator is different, which prevents it from working on Windows. I suspect there is an issue with how the path is constructed; it appears someone has hardcoded a '/' instead of using the appropriate system path separator.

Logs & Screenshots

The relevant section has been reported above.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions