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
@@ -3969,6 +3969,7 @@ export default {
attachmentUploadTooltip: 'Загрузить вложение (документы, аудио и т.д.)',
attachmentWithCount: 'Загружено файлов: {count}',
attachmentTooMany: 'Максимум {max} файлов',
attachmentTotalTooMany: 'Изображений и вложений вместе не более {max}',
attachmentTooLarge: 'Файл {name} превышает лимит {max} МБ',
attachmentTypeNotSupported: 'Неподдерживаемый тип файла: {name}',
attachmentUploading: 'Загрузка {progress}%',