Table of Contents

Class FilePart

Namespace
nanoFramework.WebServer.HttpMultipartParser
Assembly
nanoFramework.WebServer.dll

Represents a single file extracted from a multipart/form-data stream.

public class FilePart
Inheritance
FilePart
Inherited Members
Extension Methods

Constructors

FilePart(string, string, Stream, Hashtable, string, string)

Initializes a new instance of the FilePart class.

public FilePart(string name, string fileName, Stream data, Hashtable additionalProperties, string contentType, string contentDisposition)

Parameters

name string

The name of the input field used for the upload.

fileName string

The name of the file.

data Stream

The file data.

additionalProperties Hashtable

Additional properties associated with this file.

contentType string

The content type.

contentDisposition string

The content disposition.

Properties

AdditionalProperties

Gets the additional properties associated with this file. An additional property is any property other than the "well known" ones such as name, filename, content-type, etc.

public Hashtable AdditionalProperties { get; }

Property Value

Hashtable

ContentDisposition

Gets the content-disposition. Defaults to form-data if unspecified.

public string ContentDisposition { get; }

Property Value

string

ContentType

Gets the content-type. Defaults to text/plain if unspecified.

public string ContentType { get; }

Property Value

string

Data

Gets the data.

public Stream Data { get; }

Property Value

Stream

FileName

Gets the file name.

public string FileName { get; }

Property Value

string

Name

Gets the name.

public string Name { get; }

Property Value

string