Skip to content

Commit 6142ef1

Browse files
committed
Updates
1 parent b0da568 commit 6142ef1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

aspnetcore/blazor/file-uploads.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -889,10 +889,8 @@ Many ASP.NET Core apps use [Entity Framework Core (EF Core)](/ef/core/) to manag
889889

890890
The following pattern:
891891

892-
<!-- using xref:blazor/forms/validation results in a failed build -->
893-
894892
* Is based on the [Blazor movie database tutorial app](xref:blazor/tutorials/movie-database-app/index).
895-
* Can be enhanced with additional code for file size and content type [validation feedback](/aspnet/core/blazor/forms/validation).
893+
* Can be enhanced with additional code for file size and content type [validation feedback](xref:blazor/forms/validation).
896894

897895
For the following example to work in a Blazor Web App (ASP.NET Core 8.0 or later), the component must adopt an [interactive render mode](xref:blazor/fundamentals/index#static-and-interactive-rendering-concepts) (for example, `@rendermode InteractiveServer`) to call `HandleSelectedThumbnail` on an `InputFile` file change. Blazor Server app components are always interactive and don't require a render mode.
898896

@@ -915,7 +913,7 @@ Components that display the thumbnail pass image data to the `img` tag's `src` a
915913
alt="User thumbnail" />
916914
```
917915

918-
In the following `Create` component, an image upload is processed. You can enhance the example further with custom validation for file type and size using the approaches in <xref:xref:blazor/forms/validation>. To see the full `Create` component without the thumbnail upload code in the following example, see the `BlazorWebAppMovies` sample app in the [Blazor samples GitHub repository](https://github.com/dotnet/blazor-samples).
916+
In the following `Create` component, an image upload is processed. You can enhance the example further with custom validation for file type and size using the approaches in <xref:blazor/forms/validation>. To see the full `Create` component without the thumbnail upload code in the following example, see the `BlazorWebAppMovies` sample app in the [Blazor samples GitHub repository](https://github.com/dotnet/blazor-samples).
919917

920918
`Components/Pages/MoviePages/Create.razor`:
921919

0 commit comments

Comments
 (0)