Search Results for

Show / Hide Table of Contents

# Class UploadMiddleware

Middleware that removes the ASP.NET Core request body size limit for CoreUpload endpoint requests.

##### Inheritance

object
UploadMiddleware

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: CoreUpload.Middleware

###### Assembly: CoreUpload.dll

##### Syntax

    public class UploadMiddleware

### Constructors

#### UploadMiddleware(RequestDelegate, IOptions<CoreUploadOptions>)

##### Declaration

    public UploadMiddleware(RequestDelegate next, IOptions<CoreUploadOptions> options)

##### Parameters

Type | Name | Description
--- | --- | ---
RequestDelegate | next |
IOptions<CoreUploadOptions> | options |

### Methods

#### InvokeAsync(HttpContext)

Invokes the next middleware after adjusting request-size limits for the configured upload route prefix.

##### Declaration

    public Task InvokeAsync(HttpContext context)

##### Parameters

Type | Name | Description
--- | --- | ---
HttpContext | context |

##### Returns

Type | Description
--- | ---
Task |