public async Task <VideoUploadResult> UploadAsync(VideoUploadParams parameters) { var url = Api.ApiUrlVideoUpV.BuildUrl(); ResetInternalFileDescription(parameters.File, int.MaxValue); using (var response = await Api.CallAsync(HttpMethod.Post, url, parameters.ToParamsDictionary(), parameters.File, null)) { return(await VideoUploadResult.Parse(response)); } }
/// <summary> /// Uploads a video file to cloudinary. /// </summary> /// <param name="parameters">Parameters of video uploading .</param> /// <returns>Results of video uploading.</returns> public VideoUploadResult Upload(VideoUploadParams parameters) { string uri = m_api.ApiUrlVideoUpV.BuildUrl(); ResetInternalFileDescription(parameters.File); using (HttpWebResponse response = m_api.Call(HttpMethod.POST, uri, parameters.ToParamsDictionary(), parameters.File)) { return(VideoUploadResult.Parse(response)); } }