mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
[GH-ISSUE #15846] issue: Pasted files' full content resubmitted when sending a chat message #33218
Reference in New Issue
Block a user
Originally created by @R0ll1ngSt0ne on GitHub (Jul 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15846
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.16
Ollama Version (if applicable)
N/A
Operating System
Windows 11
Browser (if applicable)
Edge
Confirmation
README.md.Expected Behavior
When files were uploaded to the server, their content should not be resubmitted with each new chat message. Instead, it should be extracted internally from storage.
Actual Behavior
Each new chat message resends the entire content of each uploaded/attached file. Since some files are ~500KB in size - chat message size snowballs out of control quickly and "nginx" balancer starts to throw 413 errors.
Steps to Reproduce
Logs & Screenshots
llmt-experimentation-dev.ai-nprod.intactfc.cloud.txt
Additional Information
No response
@tjbck commented on GitHub (Jul 19, 2025):
Intended behaviour.
@R0ll1ngSt0ne commented on GitHub (Jul 21, 2025):
But why? It is a huge network bandwidth waste to keep re-uploading attached files for every submitted message - why not just reuse the uploaded content?
@rgaricano commented on GitHub (Jul 21, 2025):
because that is a task that have to be done in the model provider endpoint, and right now that function is not in its APIs,
e.g. a RETAIN_CONTEXT_IN_CONVERSATION=true param & a conversationID param, then in model provider side it know that it have to keep in memory messsages of the conversation and that the stream only have new message....
but for this it have to be in the API provider, right now, no openAI, no ollama, have it.