Skip to main content
Image posts combine one or more uploaded images with an optional text caption. Upload the images first, then pass the uploaded image objects or file IDs to the post creation API.
This page focuses on the SDK call that creates the post. See Image Handling for upload steps, supported file inputs, and upload constraints.

Uploaded Images

Create posts from image objects or file IDs returned by the file upload flow.

Caption Support

Add text, metadata, mentions, or other SDK-supported post fields alongside the images.

Parameters

Create an Image Post

The examples below create an image post in a community. Replace the target with the SDK’s user-feed target when posting to a user.

Notes

  • TypeScript accepts image attachments as { type: "image", fileId }.
  • Android accepts a Set<AmityImage>.
  • iOS accepts [AmityImageData].
  • Flutter accepts List<AmityImage>.
For mixed attachment types, use Mixed Media Posts.

Image Handling

Upload images before creating image posts.

Mixed Media Posts

Combine images with other supported media attachments.

Posts Overview

Review post concepts, retrieval, and moderation flows.