Skip to main content
Tab

UploadedFile Members

Contains settings that define a file uploaded via an individual file input field within the ASPxUploadControl.

Constructors

Name Description
UploadedFile() Initializes a new instance of the UploadedFile class with default settings.
UploadedFile(HelperPostedFileBase) For internal use only.
UploadedFile(HttpPostedFile) Initializes a new instance of the UploadedFile class with the specified settings.

Properties

Name Description
ContentLength Gets the size of an uploaded file, in bytes.
ContentType Gets the MIME content type of the uploaded file.
FileBytes Gets an array of the bytes in the uploaded file.
FileContent Gets a stream object that points to the uploaded file.
FileName Gets the uploaded file’s name.
FileNameInStorage Returns a file key name, by which it can be accessed in a cloud storage.
IsValid Gets a value indicating whether the uploaded file passes the validation criteria defined via the ASPxUploadControl.ValidationSettings property.
PostedFile Obsolete. Gets the uploaded file’s underlying object.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
SaveAs(String, Boolean) Saves the uploaded file on the server.
SaveAs(String) Saves the uploaded file specifying the full path on the server.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also