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:
@@ -3298,6 +3298,7 @@ export default {
|
||||
attachmentUploadTooltip: 'Upload attachment (documents, audio, etc.)',
|
||||
attachmentWithCount: '{count} attachment(s) uploaded',
|
||||
attachmentTooMany: 'Maximum {max} attachments allowed',
|
||||
attachmentTotalTooMany: 'Images and attachments combined can be at most {max}',
|
||||
attachmentTooLarge: 'File {name} exceeds {max}MB limit',
|
||||
attachmentTypeNotSupported: 'Unsupported file type: {name}',
|
||||
attachmentUploading: 'Uploading {progress}%',
|
||||
|
||||
Reference in New Issue
Block a user