uploadMediaFile

fun uploadMediaFile(templatePayload: ZTMediaFileTemplatePayload, context: Context? = null): Observable<ZTMediaFileTemplate>

Upload media file to zt cloud storage. Should be linked with entity afterwards

Return

Observable emits ZTMediaFileTemplate what should be used for linking

Parameters

templatePayload

file for upload

context

for file access, default is application context