mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[PR #18496] [MERGED] fix: Clear file list when selected models do not support file uploads #47863
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18496
Author: @ShirasawaSama
Created: 10/21/2025
Status: ✅ Merged
Merged: 10/21/2025
Merged by: @tjbck
Base:
dev← Head:patch-44📝 Commits (1)
1be9187fix: Clear file list when selected models do not support file uploads📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
src/lib/components/chat/MessageInput/InputMenu.svelte(+4 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
After uploading files on a model chat page that supports file uploads, switching to a model that does not support file uploads causes the file list to persist rather than clear. This results in the files still being sent to the model.
GPT 4o supports file uploads:
Then switch to Deepseek-R1, which does not support file uploads:
File list still exists.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.