You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
VkHttpRequestHelper --> public static async void Upload(...)
var httpClient = new Windows.Web.Http.HttpClient();
HttpMultipartFormDataContent content = new HttpMultipartFormDataContent();
content.Add(new HttpStreamContent(data.AsInputStream()), paramName, fileName ?? "myDataFile");
---> content.Headers.Add("Content-Type", uploadContentType); <---
var postAsyncOp = httpClient.PostAsync(new Uri(uri, UriKind.Absolute), content);
Error in line content.Headers.Add("Content-Type", uploadContentType); key Content-type is already exist in Header.
For UWP app I need this method. Thanks in advance!
The text was updated successfully, but these errors were encountered: