NeatUpload Documentation

UploadedFile Members

UploadedFile overview

Protected Static Methods

StripPath Removes the Windows-style path from the given filename.

Public Instance Fields

ContentType The MIME content type sent by the browser.
ControlUniqueID The UniqueID of the control used to upload the file.
FileName The filename sent by the browser, without any path.
TmpFile If the file is stored on disk, the corresponding FileInfo object.

Public Instance Properties

ContentLength The length in bytes of the specified file.
InputStream A readable Stream on the uploaded file.
IsUploaded Whether this object corresponds to an actual file with either a non-empty filename or a non-zero length.

Public Instance Methods

CreateStream Creates a Stream to which the IUploadModule can write the file as it is received.
Dispose Disposes of any temporary resources (e.g. temp files) used by this object.
Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
MoveTo Moves the file to a permanent location.
OpenRead Gets a Stream which can be used to access the file.
SaveAs Equivalent to
MoveTo(path, MoveToOptions.Overwrite)
ToString (inherited from Object) 

Protected Instance Constructors

UploadedFile Constructor Constructs an UploadedFile associated with a particular control UniqueID, having a given filename and content type.

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

UploadedFile Class | Brettle.Web.NeatUpload Namespace