I want to upload image files to a Azure Blob Container. I am using .net core webapi post method to upload the image.The upload getting success but the content type is invalid, which convert the original image/jpeg type to application/octet-stream.
[HttpPost]
public async Task<string> Post(IFormFile files)
{
BlobClient blobClient = _containerClient.GetBlobClient(files.FileName);
await blobClient.UploadAsync(files.OpenReadStream());
}
Can anyone help me how to upload the image keeping the original content type.
Thanks in advance.


application/octet-stream- Daybreaker