Convert FormFile to Stream
Solution 1:
You can create a MemoryStream and copy the content of the form file to it then upload the content of the memory stream.
using(var ms = new MemoryStream()) {
await file.CopyToAsync(ms);
ms.Seek(0, SeekOrigin.Begin);
blockBlob.UploadFromStreamAsync(ms);
}
Solution 2:
blockBlob.UploadFromStreamAsync(file.Openreadstream());
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iformfile.openreadstream?view=aspnetcore-5.0