Create engaging image comments with optimistic updates and file attachments
Specification | With Image Moderation | Without Image Moderation |
---|---|---|
File Types | JPG/JPEG, PNG | JPG/JPEG, WebP |
Max Images | 10 images per comment | 10 images per comment |
File Size | 1 GB per image | 1 GB per image |
Total Size | 10 GB per comment | 10 GB per comment |
Reference Type | Description | Use Cases |
---|---|---|
post | Image comments on regular posts | Photo responses, visual feedback |
story | Image comments on story content | Story reactions, visual responses |
content | Image comments on specialized content | Visual documentation, examples |
Prepare Images
Upload Files
Create Comment
Handle Response
Parameter | Type | Required | Description |
---|---|---|---|
referenceId | String | Yes | ID of the content being commented on |
referenceType | Enum | Yes | Type of content (.post, .story, .content) |
attachments | [AmityCommentAttachment] | Yes | Array of image file attachments (max 10) |
text | String | No | Optional text content alongside images |
parentId | String | No | ID of parent comment for threaded replies |