issue: /api/v1/files/ upload endpoint succeeds, but file is not processed (data.content remains empty) #13600
Replies: 10 comments 5 replies
|
We're unable to reproduce on our end, keep us updated! |
|
I am having the exact same issue right now. `headers = { ` |
|
Yes, the error actually comes from: However, the root cause is a malfunction in the upload step: The file uploads successfully (HTTP 200), but it doesn't get processed — the data.content field remains empty. As a result, the file/add call fails with: |
|
Same problem |
|
Same problem, but in our logs of open web ui the logs say, that file.content_type is None and has no field .startsWith: |
|
Hi there, i had the same problem at the moment. Do you have any solution or update on this one? |
|
Same issue here. Has anyone found a solution? |
|
Hello, anyone has any updates or workaround for this bug? Upgrade to latest version? Thanks |
|
Hi, facing the same issue. When uploading through frontend everything is working but using the backend API is causing the issue. Anyone found anything. I am using self-hosted Apache Tika as content extraction engine. |
|
I am having the same issue here when using the official cookbook: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.6
Ollama Version (if applicable)
No response
Operating System
Windows 10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
After a successful POST /api/v1/files/, the file should be automatically processed and chunked in the backend, exactly as happens when uploading via the web UI. This ensures the file is ready to be added to a knowledge base and used in RAG flows.
Actual Behavior
Uploading file via POST /api/v1/files/ returns 200 OK with a valid file ID.
However, the uploaded file is not processed:
The corresponding data.content remains empty ({}), and when we try to add the file to a knowledge base via
Steps to Reproduce
Polling /api/v1/files/{id} repeatedly until data.content is populated appears to work only if the UI is open, suggesting the background worker might be linked to a frontend action.
Logs & Screenshots
Collection created: 3496278d-a417-4538-995c-936177edfb77
Loading: LD19SGI-QS1011-009 - Accessi Logici - v05.docx
Uploaded: 2e94bdba-cbd5-43e7-81f6-bd3edc4e0d49
Added to collection: {'detail': 'Extracted content is not available for this file. Please ensure that the file is processed before proceeding.'}
Loading: Strategia_italiana_per_l_Intelligenza_artificiale_2024-2026.pdf
Uploaded: 2aff2bd2-21ec-42e9-b100-5be2befd4357
Added to collection: {'detail': 'Extracted content is not available for this file. Please ensure that the file is processed before proceeding.'}
Additional Information
No response
All reactions