It worked!
Thanks for your help Martin! The content-type was set when I turned off the suggested settings!
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
application/octet-stream
, and earlier the files we uploaded using WinSCP got the default-content-type but not anymore.
using Renci.SshNet;
using System;
var host = "xxx.blob.core.windows.net";
var port = 22;
var username = "xxxx";
var password = "yyyy";
using var client = new SftpClient(host, port, username, password);
client.Connect();
var filePath = @"C:\file.xml";
FileStream fs = new(filePath, FileMode.Open);
client.UploadFile(fs, $"{Path.GetFileName(filePath)}");