mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #19701] issue: knowledge can not multiple upload file #57623
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @willy808 on GitHub (Dec 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19701
Check Existing Issues
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
README.md.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
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/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 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
@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:
#17446 issue: file upload bug from 0.6.23
by K7cl • Sep 14, 2025 •
bug#19563 issue:
by naruto7g • Nov 28, 2025 •
bug#15571 issue: Error uploading files to the knowledge base
by sluan500 • Jul 07, 2025 •
bug#19062 issue: Attach File From Knowledge Suggestion Window size must increased to properly display filenames
by athoik • Nov 09, 2025 •
bug#17852 issue: File type and empty text file upload issue regarding Knowledge
by ChGoh7 • Sep 28, 2025 •
bugShow 5 more related issues
#19211 issue:
by Byrnes9 • Nov 16, 2025 •
bug#16252 issue: Folder issue with uploaded files (not the same as #15898)
by nc98-ai • Aug 04, 2025 •
bug#17700 issue: Using single file from knowledge base is not working
by DrZoidberg09 • Sep 24, 2025 •
bug#18142 issue: File upload not working ("list index out of range")
by Elwag • Oct 08, 2025 •
bug#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:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.