Click or drag to resize

MediasClientUploadAsync Method

To get started, call one of the following methods:
  • Anysense.API.Client.V1.ApiClient.Create
  • Anysense.API.Client.V1.ApiClient.CreateAsync
  • Anysense.API.Client.V1.ApiClient.CreateWithToken
  • Anysense.API.Client.V1.ApiClient.CreateWithTokenAsync
See Anysense.API.Client.Shared.BaseClient<T> for documentation on these methods.
Uploads a file to the service. Bundles BeginUpload, SaveChunk(s), and FinalizeUpload into one.

Namespace: Anysense.API.Client.V1
Assembly: Anysense.API.Client (in Anysense.API.Client.dll) Version: 1.29.8-dev
Syntax
C#
public Task<MediaData> UploadAsync(
	Stream stream,
	string filename,
	Guid? mediaId = null
)

Parameters

stream  Stream
The file to upload
filename  String
Filename of the file
mediaId  NullableGuid  (Optional)
The MediaId given by the client, or null to request a new.

Return Value

TaskMediaData
A MediaData object containing informations abouyt the newly upload file
See Also