uploadFile
Uploads a file not related to any channel. Progress can be accessed via progressCallback.
Return
The Result object containing an instance of UploadedFile in the case of a successful upload or an exception if the upload failed.
Parameters
file
The file to be uploaded.
progressCallback
The callback to be invoked periodically to report upload progress.