HttpPostedFileWrapper HttpPostedFileWrapper HttpPostedFileWrapper HttpPostedFileWrapper Class

Definition

Encapsulates the HTTP intrinsic object that provides access to individual files that have been uploaded by a client.

public ref class HttpPostedFileWrapper : System::Web::HttpPostedFileBase
public class HttpPostedFileWrapper : System.Web.HttpPostedFileBase
type HttpPostedFileWrapper = class
    inherit HttpPostedFileBase
Public Class HttpPostedFileWrapper
Inherits HttpPostedFileBase
Inheritance
HttpPostedFileWrapperHttpPostedFileWrapperHttpPostedFileWrapperHttpPostedFileWrapper

Remarks

The HttpPostedFileWrapper class derives from the HttpPostedFileBase class and serves as a wrapper for the HttpPostedFile class. This class exposes the functionality of the HttpPostedFile class while also exposing the HttpPostedFileBase type. The HttpPostedFileBase class enables you to replace the original implementation of the HttpPostedFile class in your application with a custom implementation, such as when you perform unit testing outside the ASP.NET pipeline.

Constructors

HttpPostedFileWrapper(HttpPostedFile) HttpPostedFileWrapper(HttpPostedFile) HttpPostedFileWrapper(HttpPostedFile) HttpPostedFileWrapper(HttpPostedFile)

Initializes a new instance of the HttpPostedFileWrapper class.

Properties

ContentLength ContentLength ContentLength ContentLength

Gets the size of an uploaded file, in bytes.

ContentType ContentType ContentType ContentType

Gets the MIME content type of an uploaded file.

FileName FileName FileName FileName

Gets the fully qualified name of the file on the client.

InputStream InputStream InputStream InputStream

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

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SaveAs(String) SaveAs(String) SaveAs(String) SaveAs(String)

Saves the contents of an uploaded file.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to