IFormFile IFormFile IFormFile Interface

Definition

Represents a file sent with the HttpRequest.

public interface IFormFile
type IFormFile = interface
Public Interface IFormFile
Derived

Properties

ContentDisposition ContentDisposition ContentDisposition

Gets the raw Content-Disposition header of the uploaded file.

ContentType ContentType ContentType

Gets the raw Content-Type header of the uploaded file.

FileName FileName FileName

Gets the file name from the Content-Disposition header.

Headers Headers Headers

Gets the header dictionary of the uploaded file.

Length Length Length

Gets the file length in bytes.

Name Name Name

Gets the form field name from the Content-Disposition header.

Methods

CopyTo(Stream) CopyTo(Stream) CopyTo(Stream)

Copies the contents of the uploaded file to the target stream.

CopyToAsync(Stream, CancellationToken) CopyToAsync(Stream, CancellationToken) CopyToAsync(Stream, CancellationToken)

Asynchronously copies the contents of the uploaded file to the target stream.

OpenReadStream() OpenReadStream() OpenReadStream()

Opens the request stream for reading the uploaded file.

Applies to