Originally created by @j-amarall on GitHub (Jan 13, 2025).
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]
Originally created by @j-amarall on GitHub (Jan 13, 2025).
## 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" />

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?
@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?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @j-amarall on GitHub (Jan 13, 2025).
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:
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]


@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?