Class UploadEndpoints
Endpoint-mapping helpers that publish the default CoreUpload HTTP API.
Inherited Members
Namespace: CoreUpload.Endpoints
Assembly: CoreUpload.dll
Syntax
public static class UploadEndpoints
Methods
MapCoreUploadEndpoints(IEndpointRouteBuilder)
Maps the standard CoreUpload endpoints for single-file upload, multi-file upload, chunking, progress, file info, download, delete, and validation.
Declaration
public static RouteGroupBuilder MapCoreUploadEndpoints(this IEndpointRouteBuilder endpoints)
Parameters
| Type | Name | Description |
|---|---|---|
| IEndpointRouteBuilder | endpoints | The route builder to configure. |
Returns
| Type | Description |
|---|---|
| RouteGroupBuilder | The route group containing the CoreUpload endpoints. Because this is a RouteGroupBuilder you can apply conventions to every mapped endpoint at once - most importantly authorization:
It also still implements IEndpointRouteBuilder, so existing call sites that ignore or further chain the result keep working. |