Sana Assistant (online)
Table of Contents

IHttpFile reference

This article provides reference material about the IHttpFile interface.

IHttpFile interface

Properties

ContentType

The raw Content-Type header of the uploaded file.

FileName

The file name from the Content-Disposition header.

Length

The size of the uploaded content in bytes.

Name

The name of the form field, taken from the Content-Disposition header, which corresponds to the field name in the submitted form or API request.

Methods

CopyTo

Copies the uploaded content synchronously to the given target stream.

CopyToAsync

Copies the uploaded content asynchronously to the given target stream.

OpenReadStream

Opens a readable stream over the uploaded content.

See also