Search Results for

# Getting Started

`CoreUpload` integrates into an ASP.NET Core app in three places:

1. Register services with `AddCoreUpload()`.
2. Add the middleware with `UseCoreUpload()`.
3. Map the upload endpoints with `MapCoreUploadEndpoints()`.

## Minimal setup

    builder.Services.AddCoreUpload(options =>
    {
        options.TempDirectory = "uploads-temp";
        options.RoutePrefix = "/api/upload";
    });

    var app = builder.Build();

    app.UseCoreUpload();
    app.MapCoreUploadEndpoints();

## Minimal Razor setup

Add the Tag Helpers to `_ViewImports.cshtml`:

    @addTagHelper *, CoreUpload

Then place a basic uploader on any page:

    <core-upload asp-multiple="true"
                 asp-auto-upload="true"
                 asp-button-text="Select Files">
    </core-upload>

## Next steps

- Review CoreUploadOptions for server defaults
- Review UploaderTagHelper for Tag Helper options
- Review UploadEndpoints for the generated API routes