Files
open-webui/src/lib/components/chat/MessageInput
Classic298 75c4421b3a fix: knowledge, note and chat attach entries open while file upload is off (#32968)
* fix: knowledge, note and chat attach entries open while file upload is off

When a user may not attach files (no file upload permission, or a selected model without "File Upload"), the "+" menu greys out "Attach Knowledge", "Reference Chats" and "Attach Notes", but they still opened, and the picked item vanished from the input without a message. Knowledge picked from the "#" and "@" lists vanished the same way, and the "#" list offered a pasted link to users without the web upload permission, which only answered "You do not have permission to upload web content". The greyed entries now do nothing on click, like "Attach Files" next to them, and the "#" and "@" lists leave out what the user cannot attach.

Refs #32830

* refac: drop type annotations on the upload flag to match neighbours

The new upload flag declarations now follow the untyped style of the lines around them.

* fix: hide attach entries in the # and @ lists from the first keystroke

The chat input now works out on its own whether files can be attached, so the lists no longer wait for the + menu to report it.
2026-10-25 13:15:59 +09:00
..
2026-10-10 22:59:27 +04:00
2026-10-07 13:22:00 +04:00
2026-09-03 20:22:32 -04:00
2026-10-25 08:29:18 +09:00
2026-10-16 01:55:24 +04:00
2026-10-01 08:13:45 +04:00