Click or drag to resize

FileValue Class

File data.
Inheritance Hierarchy
SystemObject
  DotNetBrowser.NetFileValue

Namespace:  DotNetBrowser.Net
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.22.0
Syntax
C#
public sealed class FileValue : IFileValue

The FileValue type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBytes
The file value as an array of bytes.
Public propertyContentType
The content type determined by the file extension. Equals application/octet-stream when there is no MIME type associated with the file extension.
Public propertyFileName
The file name.
Public propertyFilePath
The file value as a file path.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

Depending on how the request was constructed can contain the path to a file, or the bytes representing a file.

For example, it contains the path when the value is taken from an <input type="file"> element of the submitted form.

May contain bytes in case the request in the multipart/form-data format was constructed manually in a JavaScript code.

See Also