mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-23 03:23:08 -05:00
[GH-ISSUE #14874] issue: Profile Image in base64 freezes frontend due to LocalStorage limits #32918
Reference in New Issue
Block a user
Originally created by @almajo on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14874
Originally assigned to: @tjbck on GitHub.
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.13
Ollama Version (if applicable)
No response
Operating System
MacOS
Browser (if applicable)
Chrome/Safari
Confirmation
README.md.Expected Behavior
When chatting, I want to add collections to my prompt with the "#" key and I can use this to send a query.
Actual Behavior
If a user has a very large profile image (which is stored/loaded here in base64), the frontend freezes when adding the collection. Only a reload of the page makes OWUI workable again.
It would be great if we could remove the profileImage information from this collection string when storing it.
Steps to Reproduce
Logs & Screenshots
Additional Information
I already ran some debugging and was able to trace it down to the profile image in base64.
When injecting some code to each call to
localStorage.setItem, the result was this:localStorage only has a quota of 5 MB usually per key, after this it raises an issue
When taking the Json-String error from the debugging console and opening it in a JSON-Viewer, I see that the base64 image part makes 99.9% of the whole Json. Only 9 files are in this collection and their data is (luckily) not included but only metadata (as below).
Here the JSON (shortened) of the item that should be stored in
chat-input:@Ithanil commented on GitHub (Jun 11, 2025):
That's why I thought https://github.com/open-webui/open-webui/pull/12215 would be a good idea, regardless of the specific problem here.
@tjbck commented on GitHub (Jun 16, 2025):
Addressed with
f98ea78964in dev!