[GH-ISSUE #23444] issue: wrong audio file path on Windows #35513

Closed
opened 2026-04-25 09:43:23 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @daniporr on GitHub (Apr 6, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23444

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

Originally created by @daniporr on GitHub (Apr 6, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/23444 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] 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!). - [x] 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 - [x] I have read and followed all instructions in `README.md`. - [x] 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. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] 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). - [x] 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: ```log 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_
GiteaMirror added the bug label 2026-04-25 09:43:23 -05:00
Author
Owner

@D2758695161 commented on GitHub (Apr 7, 2026):

PR Submitted: #23464

I've identified and fixed the root cause of this issue. The bug is in ackend/open_webui/routers/audio.py in the split_audio() function at line 1112.

Root Cause: The chunk path was built with f-string concatenation which doesn't handle Windows path separators correctly.

Fix: Changed from:
python chunk_path = f'{base}_chunk_{i}.{format}'
To:
python chunk_path = os.path.join(os.path.dirname(base), f'{os.path.basename(base)}_chunk_{i}.{format}')

PR: https://github.com/open-webui/open-webui/pull/23464

<!-- gh-comment-id:4195793886 --> @D2758695161 commented on GitHub (Apr 7, 2026): ## PR Submitted: #23464 I've identified and fixed the root cause of this issue. The bug is in ackend/open_webui/routers/audio.py in the split_audio() function at line 1112. **Root Cause:** The chunk path was built with f-string concatenation which doesn't handle Windows path separators correctly. **Fix:** Changed from: `python chunk_path = f'{base}_chunk_{i}.{format}' ` To: `python chunk_path = os.path.join(os.path.dirname(base), f'{os.path.basename(base)}_chunk_{i}.{format}') ` PR: https://github.com/open-webui/open-webui/pull/23464
Author
Owner

@daniporr commented on GitHub (Apr 7, 2026):

@d2758695161, there was already a PR for this issue created by @theshivam7, who implemented the exact same change as yours but modified only 14 lines instead of the 2,688 you changed.

Is there a good reason to modify all those lines?

<!-- gh-comment-id:4199923886 --> @daniporr commented on GitHub (Apr 7, 2026): @d2758695161, there was already a PR for this issue created by @theshivam7, who implemented the exact same change as yours but modified only 14 lines instead of the 2,688 you changed. Is there a good reason to modify all those lines?
Author
Owner

@daniporr commented on GitHub (Apr 11, 2026):

@Classic298 I noticed you closed #23464.
Should we proceed with merging #23456?

<!-- gh-comment-id:4229853078 --> @daniporr commented on GitHub (Apr 11, 2026): @Classic298 I noticed you closed #23464. Should we proceed with merging #23456?
Author
Owner

@tjbck commented on GitHub (Apr 12, 2026):

Addressed in dev.

<!-- gh-comment-id:4232772568 --> @tjbck commented on GitHub (Apr 12, 2026): Addressed in dev.
Author
Owner

@theshivam7 commented on GitHub (Apr 13, 2026):

Thanks for the note! Could you point me to the commit where this was applied? I'd love to reference it in my portfolio.

<!-- gh-comment-id:4235701151 --> @theshivam7 commented on GitHub (Apr 13, 2026): Thanks for the note! Could you point me to the commit where this was applied? I'd love to reference it in my portfolio.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#35513