mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Don't think it's necessary to include a name but the upload is failing for some reason
This commit is contained in:
@@ -33,7 +33,7 @@ public static class Zipline
|
|||||||
using var formContent = new MultipartFormDataContent();
|
using var formContent = new MultipartFormDataContent();
|
||||||
var fileContent = new StreamContent(content);
|
var fileContent = new StreamContent(content);
|
||||||
fileContent.Headers.ContentType = mimeType;
|
fileContent.Headers.ContentType = mimeType;
|
||||||
formContent.Add(fileContent);
|
formContent.Add(fileContent, "upload", Money.GenerateEventId());
|
||||||
client.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", settings[BuiltIn.Keys.ZiplineKey].Value);
|
client.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", settings[BuiltIn.Keys.ZiplineKey].Value);
|
||||||
if (expiration != null)
|
if (expiration != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user