CoreUpload
Search Results for

    Show / Hide Table of Contents

    Class UploadEndpoints

    Endpoint-mapping helpers that publish the default CoreUpload HTTP API.

    Inheritance
    object
    UploadEndpoints
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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:

    app.MapCoreUploadEndpoints().RequireAuthorization();

    It also still implements IEndpointRouteBuilder, so existing call sites that ignore or further chain the result keep working.

    In this article
    Back to top CoreUpload API ReferenceUploader family: AjaxUploader, CoreUpload, MultipleUpload, ASPUploader, and PHP File Uploader.