File Post
Create a file post
File post follows the same order as image post. First, you upload the file using AmityFileRepository
, build the post using AmityFilePostBuilder
and then finally create the post.
To upload the file, AmityFileRepository
provides uploadFile
which returns you AmityFileData
for successful upload and Error
for failed upload.
Note: A post can consist of either a list of images or a list of files but not both.
Now to create file post, we build the post using AmityFilePostBuilder
.
To know more about mentions in post, refer to Mention in Post page.
Last updated