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
namestringThe name of the input field used for the upload.
fileNamestringThe name of the file.
dataStreamThe file data.
additionalPropertiesHashtableAdditional properties associated with this file.
contentTypestringThe content type.
contentDispositionstringThe 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
ContentDisposition
Gets the content-disposition. Defaults to form-data if unspecified.
public string ContentDisposition { get; }
Property Value
ContentType
Gets the content-type. Defaults to text/plain if unspecified.
public string ContentType { get; }
Property Value
Data
Gets the data.
public Stream Data { get; }
Property Value
FileName
Gets the file name.
public string FileName { get; }
Property Value
Name
Gets the name.
public string Name { get; }