From b2a029096030b2c60f2a601cc379c24efefcfac3 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 5 Dec 2025 14:17:32 +0800 Subject: [PATCH] fix: correct file upload limit check to include existing URLs --- .../components/ai-chat/component/chat-input-operate/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index c55c2eba9..42990c053 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -1202,7 +1202,7 @@ async function saveUrl() { uploadAudioList.value.length + uploadVideoList.value.length + uploadOtherList.value.length - if (file_limit_once >= maxFiles) { + if (file_limit_once + urls.length >= maxFiles) { MsgWarning(t('chat.uploadFile.limitMessage1') + maxFiles + t('chat.uploadFile.limitMessage2')) return }