Skip to content

Commit 213b672

Browse files
committed
Updates
1 parent c66b6f0 commit 213b672

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aspnetcore/blazor/file-uploads.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,13 +971,13 @@ In the following `Create` component, an image upload is processed. You can enhan
971971
if (browserFile?.Size > 0 && browserFile?.Size <= maxFileSize)
972972
{
973973
using var memoryStream = new MemoryStream();
974-
await browserFile!.OpenReadStream(maxFileSize).CopyToAsync(memoryStream);
974+
await browserFile.OpenReadStream(maxFileSize).CopyToAsync(memoryStream);
975975
976-
Movie!.Thumbnail = memoryStream.ToArray();
976+
Movie.Thumbnail = memoryStream.ToArray();
977977
}
978978
else
979979
{
980-
Movie!.Thumbnail = File.ReadAllBytes(
980+
Movie.Thumbnail = File.ReadAllBytes(
981981
$"{AppDomain.CurrentDomain.BaseDirectory}default_thumbnail.jpg");
982982
}
983983

0 commit comments

Comments
 (0)