Files
open-webui/src/lib
silentoplayz 0031fb8274 fix: correctly handle clipboard images in prompts
The textVariableHandler was using URL.createObjectURL() for clipboard images, which created a blob URL instead of the required base64-encoded data URL. This caused an "illegal base64 data" error when sending messages with images pasted via a {{CLIPBOARD}} prompt.

This commit updates the handler to use FileReader.readAsDataURL() to properly encode the image, aligning it with the existing on:paste logic. Additionally, it adds error handling for navigator.clipboard.read() to address potential permission issues in Firefox.
2025-10-19 20:15:39 -04:00
..
2025-10-17 08:29:01 -03:00
2025-02-04 21:02:11 -08:00
2025-09-28 22:15:47 -05:00
2024-08-26 15:38:42 +02:00
2025-10-11 15:50:32 -05:00
wip
2024-12-11 20:25:46 -08:00
2025-06-20 16:24:04 +08:00
2024-12-30 02:20:09 -08:00
2024-12-30 02:20:09 -08:00
…