-
-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
I'm testing the library and I managed to create a post correctly, but when I try to create a media, it doesn't work correctly.
It uploads the image to the folder correctly, but it has a different size and a non-image format.
I tested a few methods and they all worked the same way.
if (await client.Auth.IsValidJWTokenAsync())
{
//Stream s = new FileStream(@"C:\Temp\erro_tela.png", FileMode.Open, FileAccess.Read, FileShare.Read);
Stream s = File.OpenRead(@"C:\Temp\erro_tela.png");
var createdMedia = await client.Media.CreateAsync(s, "erro_tela.png");
//var createdMedia = await client.Media.CreateAsync(@"C:\Temp\erro_tela.png", "erro_tela.png");
Console.WriteLine(createdMedia.MimeType);
Console.WriteLine(createdMedia.SourceUrl);
}
Metadata
Metadata
Assignees
Labels
No labels
