Document iOS multiple attachments (SDK + UI Kit)#428
Document iOS multiple attachments (SDK + UI Kit)#428adityakotasthane07 wants to merge 3 commits into
Conversation
SDK: - send-message: rewrite the multiple-attachments section around the upload-first flow (uploadFiles, MediaCallbackListener, cancelFile), document upload limits (file.count.max / file.size.max), the error codes table, the files-must-stay-nil warning, and keep the direct send form as a legacy sub-section UI Kit: - message-composer / compact-message-composer: new Multiple Attachments section (multi-select picking, attachment tray, upload-before-send, per-type message split, clipboard paste, voice-note exception, edit-mode behavior), server-driven limits and validation table, CometChatErrorStateStyle theming, enableMultipleAttachments prop - message-list: per-type bubbles, batch grouping behavior and the set(enableMultipleAttachments:) toggle - message-bubble-styling: new Media Grid Bubble, Audio Files Bubble and Files Bubble sections with GalleryBubbleStyle properties - core-features: Media Sharing rewritten to lead with the multi-attachment flow
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Docs review — ✅ ApproveiOS multi-attachment docs — SDK upload-first flow + UIKit composer/bubble updates (6 files, +309/-27). No file deletions/nav change → no redirect risk. I verified the entire SDK API against the exact matching feature branch ( ✅ SDK API — verified against
|
jitvarpatil
left a comment
There was a problem hiding this comment.
Docs review — ✅ Approve
iOS multi-attachment docs — SDK upload-first flow + UIKit composer/bubble updates (6 files, +309/-27). No file deletions/nav change → no redirect risk. I verified the entire SDK API against the exact matching feature branch (ENG-36750/iossdk-multi-attachment-presigned-upload-support) — every symbol, signature, and default matches. Structurally clean.
✅ SDK API — verified against ENG-36750
CometChat.uploadFiles(files:listener:)— real public API (CometChat+FileUpload.swift).MediaCallbackListener— upload listener with exactly the 4 documented methods:onSuccess(fileId:attachment:),onProgress(fileId:bytesUploaded:totalBytes:),onError(fileId:error:),onFailure(fileId:error:).MediaMessage.attachments: [Attachment]?— settable property (MediaMessage.swift:66), matchingmediaMessage.attachments = uploadedAttachments.getMaxFileCount()→file.count.max, "Defaults to 10" (matches exactly);getMaxFileSize()→file.size.max(100 MB).sendMediaMessage,Attachmentconfirmed. The "leavefilesnil; an emptyfilesarray fails with invalid-message error" note is consistent with the file-count logic.
✅ Structure & UIKit
- 0 nav breaks, 0 orphans, 0 broken links in the changed files; all internal links resolve. (The 2
sdk/ioslinks the analyzer flagged —default-calling/login-listeners— are pre-existing in unchanged files, notsend-message.mdx.) - UIKit docs use the existing
CometChatMessageComposer+attachmentOptions. No placeholders/TODOs.
Note
The SDK feature is on ENG-36750 (freshest branch) — i.e. this documents an in-progress feature. Please confirm the SDK version with uploadFiles/MediaMessage.attachments/getMaxFileCount ships with the release these docs target.
Well-sourced, accurate PR. Ready to merge.
🤖 Automated docs review (Mintlify link/redirect/content checks + API verification against CometChatSDK iOS multi-attachment branch).
Mirror the Android multimedia-attachments docs (PR #430) for iOS: - sdk/ios/upload-files: new dedicated page for the UploadFileRequest upload-then-send flow — create request, uploadAttachments with caller-supplied fileIds, UploadFileListener (onFileProgress/ onFileUploaded/onFileError/onFileFailure/onComplete), UploadResult, configuration setters, per-call + global listeners, batch getters, remove/retry/clear, limits, reliability behavior, and the error table - sdk/ios/send-message: slim the Multiple Attachments section to the upload-first tip plus the two direct-send forms (files array and pre-hosted Attachment objects) - docs.json: register sdk/ios/upload-files after send-message - ui-kit/ios/core-features: add the multi-attachment overview screenshot to the Media Sharing section
bubbleWidth defaults to a screen-relative width (~0.62 ratio, clamped 210–300), not a fixed 240 — verified against GalleryBubbleStyle.swift.
SDK:
UI Kit:
Description
Related Issue(s)
Type of Change
Checklist
Additional Information
Screenshots (if applicable)