feat(attachments): enforce combined limit for images and attachments

Implement a maximum limit of 5 for the total number of images and attachments that can be uploaded in a chat session. Introduce a warning message for users when the limit is exceeded. Additionally, add functionality to clear pending uploads when switching sessions to prevent errors related to stale document IDs. Update localization files to include new warning messages in English, Korean, Russian, and Chinese.
This commit is contained in:
wizardchen
2026-07-16 17:38:34 +08:00
committed by lyingbug
parent 85d10d99e3
commit 7ddac0385f
6 changed files with 36 additions and 2 deletions
+1
View File
@@ -1055,6 +1055,7 @@ export default {
attachmentUploadTooltip: "첨부 파일 업로드 (문서, 오디오 등)",
attachmentWithCount: "{count}개 파일 업로드됨",
attachmentTooMany: "최대 {max}개 파일까지 업로드 가능합니다",
attachmentTotalTooMany: "이미지와 첨부 파일은 합쳐서 최대 {max}개까지 가능합니다",
attachmentTooLarge: "파일 {name}이(가) {max}MB 제한을 초과합니다",
attachmentTypeNotSupported: "지원하지 않는 파일 형식: {name}",
attachmentUploading: "업로드 중 {progress}%",