Skip to content

Commit b2a0290

Browse files
committed
fix: correct file upload limit check to include existing URLs
1 parent 4d0ac41 commit b2a0290

File tree

1 file changed

+1
-1
lines changed
  • ui/src/components/ai-chat/component/chat-input-operate

1 file changed

+1
-1
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ async function saveUrl() {
12021202
uploadAudioList.value.length +
12031203
uploadVideoList.value.length +
12041204
uploadOtherList.value.length
1205-
if (file_limit_once >= maxFiles) {
1205+
if (file_limit_once + urls.length >= maxFiles) {
12061206
MsgWarning(t('chat.uploadFile.limitMessage1') + maxFiles + t('chat.uploadFile.limitMessage2'))
12071207
return
12081208
}

0 commit comments

Comments
 (0)