uploadFile

fun uploadFile(file: File, progressCallback: ProgressCallback? = null): Call<UploadedFile>

Uploads a file not related to any channel. Progress can be accessed via progressCallback.

Return

Executable async Call which completes with Result containing an instance of UploadedFile if the file was successfully uploaded.

Parameters

file

The file to be uploaded.

progressCallback

The callback to be invoked periodically to report upload progress.

See also