TypeScript, Android, and iOS expose mixed media post creation APIs. The current public Flutter post creation builder exposes single attachment-type creators for image, video, and file posts, but it does not expose a mixed media post creator.
Combined Attachments
Keep related uploaded media in one post instead of splitting it into separate posts.
Derived Structure
The service derives the post structure from the attachment types; do not set it manually.
Parameters
Create a Mixed Media Post
The examples below combine image and video attachments in a community post. Add audio or file attachments on SDKs that expose those uploaded media object types.Flutter Support
Flutter’s current public post creation builder exposes.image(...), .video(...), and .file(...) for single attachment-type posts. It does not expose a public mixed media builder that accepts multiple attachment types in one post creation call.
Create a single supported post type from Flutter, or create mixed media posts from a platform/backend layer that exposes mixed attachment creation.
Notes
- TypeScript accepts mixed attachments in
PostRepository.createPost. - Android accepts a
Set<AmityAttachment>throughcreateMixedAttachmentPost. - iOS accepts uploaded media through
AmityMixedMediaPostBuilder. - Do not pass
structureTypein the create request. The service derives it from the attachment composition.
Related Topics
Image Posts
Create image-only posts from uploaded images.
Video Posts
Create video-only posts from uploaded videos.
File Posts
Create file-only posts from uploaded files.