AttachmentFilter

class AttachmentFilter(chatClient: ChatClient = ChatClient.instance())

A filter that is used to filter out attachments that will not be accepted by the backend.

Clients are able to modify the upload configuration in the dashboard and specify what types of files and images they want to allow or block from being uploaded.

Parameters

chatClient

An instance of the low level chat client to fetch upload config.

Constructors

Link copied to clipboard
constructor(chatClient: ChatClient = ChatClient.instance())

Functions

Link copied to clipboard

Filters out attachments that can be uploaded to the backend according to files and images upload configurations.

Link copied to clipboard

Returns the list of supported MIME types by the server according to the upload config values.