Skip to content

Create Blazor Wasm to Upload Files to API Endpoint

Mohammed Abbod edited this page Dec 9, 2022 · 3 revisions

Create Blazor Wasm project:

Give it the name and location:

No need to create the server project, uncheck the "ASP.NET Core Hosted" if its checked:

The project template will be like this:

open the file .csproj and include the project MasterBlazor.Forms.UploadFiles

in the _Imports.razor, add @using for the UploadFiles Control:

Then simply add the following to the Index.razor:

That's it, the project now is ready to open the index razor and show the upload control.