[GH-ISSUE #19701] issue: knowledge can not multiple upload file #34486

Closed
opened 2026-04-25 08:29:43 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @willy808 on GitHub (Dec 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19701

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

Git Clone

Open WebUI Version

v0.6.15

Ollama Version (if applicable)

No response

Operating System

ubuntu 22.04

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

when we upload files more than one, it could upload success

Actual Behavior

when we upload files more than one, it does not work and get failed

Steps to Reproduce

when we upload files more than one, it does not work and get failed

Logs & Screenshots

process_file(request, ProcessFileForm(file_id=id), user=user)
│            │        │                       │         └ UserModel(id='25307602-fc1f-49b9-a9a5-d03dc8f546c3', name='陳瑋鑫', email='123@123.com', role='admin', profile_image_url='data:i...
│            │        │                       └ '2524b490-e08e-4ed1-906a-f5f21bed30a5'
│            │        └ <class 'open_webui.routers.retrieval.ProcessFileForm'>
│            └ <starlette.requests.Request object at 0x792c35275f50>
└ <function process_file at 0x792cb13d16c0>

File "/app/backend/open_webui/routers/retrieval.py", line 1447, in process_file
raise e
└ ValueError(<ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present be...

File "/app/backend/open_webui/routers/retrieval.py", line 1419, in process_file
result = save_docs_to_vector_db(
└ <function save_docs_to_vector_db at 0x792cb139a160>

File "/app/backend/open_webui/routers/retrieval.py", line 1167, in save_docs_to_vector_db
raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT)
│ └ <ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present before procee...
└ <enum 'ERROR_MESSAGES'>

ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding.
2025-12-03 02:04:41.551 | ERROR | open_webui.routers.files:upload_file:190 - 400: The content provided is empty. Please ensure that there is text or data present before proceeding. - {}
Traceback (most recent call last):

File "/app/backend/open_webui/routers/retrieval.py", line 1447, in process_file
raise e

File "/app/backend/open_webui/routers/retrieval.py", line 1419, in process_file
result = save_docs_to_vector_db(
└ <function save_docs_to_vector_db at 0x792cb139a160>

File "/app/backend/open_webui/routers/retrieval.py", line 1167, in save_docs_to_vector_db
raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT)
│ └ <ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present before procee...
└ <enum 'ERROR_MESSAGES'>

ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x792d148909a0>
└ <WorkerThread(AnyIO worker thread, started 133225405978304)>
File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
│ └ <function WorkerThread.run at 0x792c4dcebd80>
└ <WorkerThread(AnyIO worker thread, started 133225405978304)>
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
│ │ │ └ ()
│ │ └ functools.partial(<function upload_file at 0x792cb45d1b20>, user=UserModel(id='25307602-fc1f-49b9-a9a5-d03dc8f546c3', name='陳...
│ └ <method 'run' of '_contextvars.Context' objects>
└ <_contextvars.Context object at 0x792c4eaeb480>

File "/app/backend/open_webui/routers/files.py", line 181, in upload_file
process_file(request, ProcessFileForm(file_id=id), user=user)
│ │ │ │ └ UserModel(id='25307602-fc1f-49b9-a9a5-d03dc8f546c3', name='陳瑋鑫', email='123@123.com', role='admin', profile_image_url='data:i...
│ │ │ └ '2524b490-e08e-4ed1-906a-f5f21bed30a5'
│ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'>
│ └ <starlette.requests.Request object at 0x792c35275f50>
└ <function process_file at 0x792cb13d16c0>

File "/app/backend/open_webui/routers/retrieval.py", line 1464, in process_file
raise HTTPException(
└ <class 'fastapi.exceptions.HTTPException'>

fastapi.exceptions.HTTPException: 400: The content provided is empty. Please ensure that there is text or data present before proceeding.
2025-12-03 02:04:41.552 | ERROR | open_webui.routers.files:upload_file:191 - Error processing file: 2524b490-e08e-4ed1-906a-f5f21bed30a5 - {}
2025-12-03 02:04:41.554 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.24.186:49316 - "POST /api/v1/files/ HTTP/1.1" 200 - {}
2025-12-03 02:04:41.573 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1125 - save_docs_to_vector_db: document 105image.docx e9f60aa9-d892-4c0f-86c1-ce3cc495ced3 - {}
2025-12-03 02:04:41.580 | ERROR | open_webui.routers.retrieval:process_file:1457 - The content provided is empty. Please ensure that there is text or data present before proceeding. - {}
Traceback (most recent call last):

File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x792d148909a0>
└ <WorkerThread(AnyIO worker thread, started 133225405978304)>
File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
│ └ <function WorkerThread.run at 0x792c4dcebd80>
└ <WorkerThread(AnyIO worker thread, started 133225405978304)>
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
│ │ │ └ ()
│ │ └ functools.partial(<function add_file_to_knowledge_by_id at 0x792cb1295c60>, user=UserModel(id='25307602-fc1f-49b9-a9a5-d03dc8...
│ └ <method 'run' of '_contextvars.Context' objects>
└ <_contextvars.Context object at 0x792c352de140>

File "/app/backend/open_webui/routers/knowledge.py", line 372, in add_file_to_knowledge_by_id
process_file(
└ <function process_file at 0x792cb13d16c0>

File "/app/backend/open_webui/routers/retrieval.py", line 1447, in process_file
raise e
└ ValueError(<ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present be...

File "/app/backend/open_webui/routers/retrieval.py", line 1419, in process_file
result = save_docs_to_vector_db(
└ <function save_docs_to_vector_db at 0x792cb139a160>

File "/app/backend/open_webui/routers/retrieval.py", line 1167, in save_docs_to_vector_db
raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT)
│ └ <ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present before procee...
└ <enum 'ERROR_MESSAGES'>

ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding.

Additional Information

No response

Originally created by @willy808 on GitHub (Dec 3, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/19701 ### 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 Git Clone ### Open WebUI Version v0.6.15 ### Ollama Version (if applicable) _No response_ ### Operating System ubuntu 22.04 ### 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. - [x] I have included the browser console logs. - [x] 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 when we upload files more than one, it could upload success ### Actual Behavior when we upload files more than one, it does not work and get failed ### Steps to Reproduce when we upload files more than one, it does not work and get failed ### Logs & Screenshots process_file(request, ProcessFileForm(file_id=id), user=user) │ │ │ │ └ UserModel(id='25307602-fc1f-49b9-a9a5-d03dc8f546c3', name='陳瑋鑫', email='123@123.com', role='admin', profile_image_url='data:i... │ │ │ └ '2524b490-e08e-4ed1-906a-f5f21bed30a5' │ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'> │ └ <starlette.requests.Request object at 0x792c35275f50> └ <function process_file at 0x792cb13d16c0> > File "/app/backend/open_webui/routers/retrieval.py", line 1447, in process_file raise e └ ValueError(<ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present be... File "/app/backend/open_webui/routers/retrieval.py", line 1419, in process_file result = save_docs_to_vector_db( └ <function save_docs_to_vector_db at 0x792cb139a160> File "/app/backend/open_webui/routers/retrieval.py", line 1167, in save_docs_to_vector_db raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT) │ └ <ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present before procee... └ <enum 'ERROR_MESSAGES'> ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding. 2025-12-03 02:04:41.551 | ERROR | open_webui.routers.files:upload_file:190 - 400: The content provided is empty. Please ensure that there is text or data present before proceeding. - {} Traceback (most recent call last): File "/app/backend/open_webui/routers/retrieval.py", line 1447, in process_file raise e File "/app/backend/open_webui/routers/retrieval.py", line 1419, in process_file result = save_docs_to_vector_db( └ <function save_docs_to_vector_db at 0x792cb139a160> File "/app/backend/open_webui/routers/retrieval.py", line 1167, in save_docs_to_vector_db raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT) │ └ <ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present before procee... └ <enum 'ERROR_MESSAGES'> ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap self._bootstrap_inner() │ └ <function Thread._bootstrap_inner at 0x792d148909a0> └ <WorkerThread(AnyIO worker thread, started 133225405978304)> File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() │ └ <function WorkerThread.run at 0x792c4dcebd80> └ <WorkerThread(AnyIO worker thread, started 133225405978304)> File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run result = context.run(func, *args) │ │ │ └ () │ │ └ functools.partial(<function upload_file at 0x792cb45d1b20>, user=UserModel(id='25307602-fc1f-49b9-a9a5-d03dc8f546c3', name='陳... │ └ <method 'run' of '_contextvars.Context' objects> └ <_contextvars.Context object at 0x792c4eaeb480> > File "/app/backend/open_webui/routers/files.py", line 181, in upload_file process_file(request, ProcessFileForm(file_id=id), user=user) │ │ │ │ └ UserModel(id='25307602-fc1f-49b9-a9a5-d03dc8f546c3', name='陳瑋鑫', email='123@123.com', role='admin', profile_image_url='data:i... │ │ │ └ '2524b490-e08e-4ed1-906a-f5f21bed30a5' │ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'> │ └ <starlette.requests.Request object at 0x792c35275f50> └ <function process_file at 0x792cb13d16c0> File "/app/backend/open_webui/routers/retrieval.py", line 1464, in process_file raise HTTPException( └ <class 'fastapi.exceptions.HTTPException'> fastapi.exceptions.HTTPException: 400: The content provided is empty. Please ensure that there is text or data present before proceeding. 2025-12-03 02:04:41.552 | ERROR | open_webui.routers.files:upload_file:191 - Error processing file: 2524b490-e08e-4ed1-906a-f5f21bed30a5 - {} 2025-12-03 02:04:41.554 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.24.186:49316 - "POST /api/v1/files/ HTTP/1.1" 200 - {} 2025-12-03 02:04:41.573 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1125 - save_docs_to_vector_db: document 105image.docx e9f60aa9-d892-4c0f-86c1-ce3cc495ced3 - {} 2025-12-03 02:04:41.580 | ERROR | open_webui.routers.retrieval:process_file:1457 - The content provided is empty. Please ensure that there is text or data present before proceeding. - {} Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap self._bootstrap_inner() │ └ <function Thread._bootstrap_inner at 0x792d148909a0> └ <WorkerThread(AnyIO worker thread, started 133225405978304)> File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() │ └ <function WorkerThread.run at 0x792c4dcebd80> └ <WorkerThread(AnyIO worker thread, started 133225405978304)> File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run result = context.run(func, *args) │ │ │ └ () │ │ └ functools.partial(<function add_file_to_knowledge_by_id at 0x792cb1295c60>, user=UserModel(id='25307602-fc1f-49b9-a9a5-d03dc8... │ └ <method 'run' of '_contextvars.Context' objects> └ <_contextvars.Context object at 0x792c352de140> File "/app/backend/open_webui/routers/knowledge.py", line 372, in add_file_to_knowledge_by_id process_file( └ <function process_file at 0x792cb13d16c0> > File "/app/backend/open_webui/routers/retrieval.py", line 1447, in process_file raise e └ ValueError(<ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present be... File "/app/backend/open_webui/routers/retrieval.py", line 1419, in process_file result = save_docs_to_vector_db( └ <function save_docs_to_vector_db at 0x792cb139a160> File "/app/backend/open_webui/routers/retrieval.py", line 1167, in save_docs_to_vector_db raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT) │ └ <ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present before procee... └ <enum 'ERROR_MESSAGES'> ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding. ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-25 08:29:43 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Dec 3, 2025):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #17446 issue: file upload bug from 0.6.23
    by K7cl • Sep 14, 2025 • bug

  2. #19563 issue:
    by naruto7g • Nov 28, 2025 • bug

  3. #15571 issue: Error uploading files to the knowledge base
    by sluan500 • Jul 07, 2025 • bug

  4. #19062 issue: Attach File From Knowledge Suggestion Window size must increased to properly display filenames
    by athoik • Nov 09, 2025 • bug

  5. #17852 issue: File type and empty text file upload issue regarding Knowledge
    by ChGoh7 • Sep 28, 2025 • bug

Show 5 more related issues
  1. #19211 issue:
    by Byrnes9 • Nov 16, 2025 • bug

  2. #16252 issue: Folder issue with uploaded files (not the same as #15898)
    by nc98-ai • Aug 04, 2025 • bug

  3. #17700 issue: Using single file from knowledge base is not working
    by DrZoidberg09 • Sep 24, 2025 • bug

  4. #18142 issue: File upload not working ("list index out of range")
    by Elwag • Oct 08, 2025 • bug

  5. #19558 issue: When using the “Upload a document” feature in the chat, it returns the following message: “Please provide the content of the attachment. I will prepare a summary based on the information in the file.”
    by jiunmoon • Nov 28, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3604715777 --> @owui-terminator[bot] commented on GitHub (Dec 3, 2025): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#17446](https://github.com/open-webui/open-webui/issues/17446) **issue: file upload bug from 0.6.23** *by K7cl • Sep 14, 2025 • `bug`* 2. [#19563](https://github.com/open-webui/open-webui/issues/19563) **issue:** *by naruto7g • Nov 28, 2025 • `bug`* 3. [#15571](https://github.com/open-webui/open-webui/issues/15571) **issue: Error uploading files to the knowledge base** *by sluan500 • Jul 07, 2025 • `bug`* 4. [#19062](https://github.com/open-webui/open-webui/issues/19062) **issue: Attach File From Knowledge Suggestion Window size must increased to properly display filenames** *by athoik • Nov 09, 2025 • `bug`* 5. [#17852](https://github.com/open-webui/open-webui/issues/17852) **issue: File type and empty text file upload issue regarding Knowledge** *by ChGoh7 • Sep 28, 2025 • `bug`* <details> <summary>Show 5 more related issues</summary> 6. [#19211](https://github.com/open-webui/open-webui/issues/19211) **issue:** *by Byrnes9 • Nov 16, 2025 • `bug`* 7. [#16252](https://github.com/open-webui/open-webui/issues/16252) **issue: Folder issue with uploaded files (not the same as #15898)** *by nc98-ai • Aug 04, 2025 • `bug`* 8. [#17700](https://github.com/open-webui/open-webui/issues/17700) **issue: Using single file from knowledge base is not working** *by DrZoidberg09 • Sep 24, 2025 • `bug`* 9. [#18142](https://github.com/open-webui/open-webui/issues/18142) **issue: File upload not working ("list index out of range")** *by Elwag • Oct 08, 2025 • `bug`* 10. [#19558](https://github.com/open-webui/open-webui/issues/19558) **issue: When using the “Upload a document” feature in the chat, it returns the following message: “Please provide the content of the attachment. I will prepare a summary based on the information in the file.”** *by jiunmoon • Nov 28, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#34486