refac/fix: disable file upload by drag with unsupported model

This commit is contained in:
Timothy Jaeryang Baek 2025-07-16 15:25:56 +04:00
parent 83c09f15ac
commit 82093cf690

View file

@ -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',