I have updated Syncfusion Blazor yesterday and I am getting the error:
Syncfusion.Blazor.Inputs.UploadFiles.Stream.get returned null.
Meanwhile I am using the sample code as below which used to work before the update. I also get UploadFiles.Stream is obsolete:
private void OnChange(Syncfusion.Blazor.Inputs.UploadChangeEventArgs args)
{
foreach (var file in args.Files)
{
fName = file.FileInfo.Name;
if (!Directory.Exists(UploadFolder)) Directory.CreateDirectory(UploadFolder);
fileName = Path.Combine(UploadFolder, fName);
FileStream filestream = new FileStream(fileName, FileMode.Create, FileAccess.Write);
file.Stream.CopyTo(filestream);
filestream.Close();
file.Stream.Close();
}
}