sendImage

abstract fun sendImage(channelType: String, channelId: String, userId: String, file: File, callback: ProgressCallback): Result<UploadedFile>

Uploads an image for the given channel. Progress can be accessed via callback.

Return

The Result object containing an instance of UploadedFile in the case of a successful upload or an exception if the upload had failed.

See also

Result.success
Result.error

abstract fun sendImage(channelType: String, channelId: String, userId: String, file: File): Result<UploadedFile>

Uploads an image for the given channel.

Return

The Result object containing an instance of UploadedFile in the case of a successful upload or an exception if the upload had failed.

See also

Result.success
Result.error