[GH-ISSUE #8517] File Upload Error in Open WebUI v0.5.4 #15152

Closed
opened 2026-04-19 21:26:57 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @j-amarall on GitHub (Jan 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8517

Installation Method

git clone, Docker

Environment

  • Open WebUI Version: v0.5.4

  • Ollama (if applicable): 0.5.4

  • Operating System: macOS

  • Browser (if applicable): Chrome

Confirmation:

  • [ x] I have read and followed all the instructions provided in the README.md.
  • [ x] I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

When uploading files into a chat, they should be processed successfully and their content made available for interaction without errors.

Actual Behavior:

Error messages are displayed during file uploads in the chat interface:

File 1: SB Servicestelle...

Error message: "The content provided is empty. Please ensure that there is text or data present before proceeding."
File 2: Stellv Leitung...

Error message: "Could not detect encoding for [file path]."

The files are valid .doc or pdf documents and work correctly in other environments.

Description

Screenshots/Screen Recordings (if applicable):

[Include relevant Docker container logs, if applicable]
Bildschirmfoto 2025-01-13 um 13 26 17
Bildschirmfoto 2025-01-13 um 13 25 17

Originally created by @j-amarall on GitHub (Jan 13, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/8517 ## Installation Method git clone, Docker ## Environment - **Open WebUI Version:** v0.5.4 - **Ollama (if applicable):** 0.5.4 - **Operating System:** macOS - **Browser (if applicable):** Chrome **Confirmation:** - [ x] I have read and followed all the instructions provided in the README.md. - [ x] I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: When uploading files into a chat, they should be processed successfully and their content made available for interaction without errors. ## Actual Behavior: Error messages are displayed during file uploads in the chat interface: File 1: SB Servicestelle... Error message: "The content provided is empty. Please ensure that there is text or data present before proceeding." File 2: Stellv Leitung... Error message: "Could not detect encoding for [file path]." The files are valid .doc or pdf documents and work correctly in other environments. ## Description **Screenshots/Screen Recordings (if applicable):** [Include relevant Docker container logs, if applicable] <img width="1272" alt="Bildschirmfoto 2025-01-13 um 13 26 17" src="https://github.com/user-attachments/assets/f7cb568b-1bf5-4e94-b1a9-ddb29cf2a659" /> ![Bildschirmfoto 2025-01-13 um 13 25 17](https://github.com/user-attachments/assets/4e2d2ec1-ec83-4c90-8ac6-95296acde76f)
Author
Owner

@juananpe commented on GitHub (Jan 13, 2025):

The second error ("Could not detect encoding...") is coming from langchain. It uses chardet library to check the encodings and it seems that chardet is unable to detect a proper encoding for your file. Can you share the documents so we can replicate the issue?

<!-- gh-comment-id:2587266063 --> @juananpe commented on GitHub (Jan 13, 2025): The second error ("Could not detect encoding...") is coming from langchain. It uses chardet library to check the encodings and it seems that chardet is unable to detect a proper encoding for your file. Can you share the documents so we can replicate the issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#15152