sendFile

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

Uploads a file 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 sendFile(channelType: String, channelId: String, userId: String, file: File): Result<UploadedFile>

Uploads a file 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