mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 05:15:18 +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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fileUploadCapableModels.length !== selectedModels.length) {
|
||||||
|
toast.error($i18n.t('Model(s) do not support file upload'));
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const tempItemId = uuidv4();
|
const tempItemId = uuidv4();
|
||||||
const fileItem = {
|
const fileItem = {
|
||||||
type: 'file',
|
type: 'file',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue