mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
[GH-ISSUE #18425] issue: expanding prompt with {{CLIPBOARD}} doesn't work with image in the clipboard #89335
Reference in New Issue
Block a user
Originally created by @peter-ch on GitHub (Oct 19, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18425
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.34
Ollama Version (if applicable)
No response
Operating System
Windows 11
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
I have a prompt for use with vision LLMs to quickly transcribe an image. I included {{CLIPBOARD}} in the prompt and I expand it quickly by typing /im[TAB] and it correctly puts the image there and it all works up until I try to send the message.
Actual Behavior
But I get: 'url' field must be a base64 encoded image.
However if I put the image manually with Ctrl-V and send it, there is no error. It only happens when I expand the prompt with {{CLIPBOARD}} in it.
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@silentoplayz commented on GitHub (Oct 19, 2025):
This indeed does look like an issue that can be reproduced by another contributor and I, although, the error displayed in the chat is different. I was able to reproduce this issue on the latest
devbranch commit using Firefox browser.To reproduce this issue on Firefox:
Start with an image or a screenshot copied to your device's clipboard.
{{CLIPBOARD}}as the prompt content.Start a new chat with a vision supported model.
Type
/clipboard(or whatever you named the prompt as) and click on thePastetooltip/popup that appears or do something like/clip[TAB]to auto-select the highlighted prompt.Pastetooltip/popup that appears one more (again). Clicking on it the 2nd time gets it to paste the image I have in my clipboard to Open WebUI's input field.The following error can be spotted in the back-end terminal for Open WebUI:
Edit: The error received on the front-end (UI) during local development is different than on the
devbranch.@tjbck commented on GitHub (Nov 2, 2025):
Addressed in dev;
@silentoplayz commented on GitHub (Nov 3, 2025):
I can confirm it's been solved!