uploadFileToChannel

abstract fun uploadFileToChannel(channel: Channel, uriFile: Uri, listener: RainbowListener<RainbowFileDescriptor, Unit>? = null)

Uploads a file to a channel A new RainbowFileDescriptor will be create with the user as the owner, the channel will be a viewer for this RainbowFileDescriptor.

Parameters

channel

Channel the channel object in which the file will be uploaded

uriFile

Uri the Uri of the file to upload

listener

RainbowListener<RainbowFileDescriptor, Unit> callback (onSuccess, onError)