mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
refac/fix: disable file upload by drag with unsupported model
This commit is contained in:
parent
83c09f15ac
commit
82093cf690
1 changed files with 5 additions and 0 deletions
|
|
@ -505,6 +505,11 @@
|
|||
return null;
|
||||
}
|
||||
|
||||
if (fileUploadCapableModels.length !== selectedModels.length) {
|
||||
toast.error($i18n.t('Model(s) do not support file upload'));
|
||||
return null;
|
||||
}
|
||||
|
||||
const tempItemId = uuidv4();
|
||||
const fileItem = {
|
||||
type: 'file',
|
||||
|
|
|
|||
Loading…
Reference in a new issue