Skip to main content
Version: 3.5

HttpPostedFile

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Provides access to individual files that have been uploaded by a client.

public class HttpPostedFile

Properties

Instance memberContentLength

Int64: Returns the size of an uploaded file, in bytes.

Instance memberContentType

String: Returns the MIME content type of a file sent by a client.

Instance memberFileName

String: Return the fully qualified name of the file on the client.

Instance memberInputStream

Stream: Returns a Stream object that points to an uploaded file to prepare for reading the contents of the file.

Instance memberLastModified

DateTime: Returns the last modified DateTime of the file.

Methods

Instance memberSaveAs(filename)

Saves the contents of an uploaded file.

ParameterTypeDescription
filenameStringThe name of the file.