This class encapsulates an uploaded file. It is designed to
supplement the functionality of the HttpPostedFile class. As such
an UploadedFile object behaves very similarly to an HttpPostedFile
object.
While this class provides the same basic methods and properties
as the HttpPostedFile object it supplements them with other methods
and properties for a greater level of control over the upload
process.
You cannot create an UploadedFile object directly. You must
obtain it by referencing an item within the Files property of an
Upload object.
| Property
|
Description
|
| ContentLength
|
Gets the size in bytes of the uploaded file data. |
| ContentType
|
Gets the MIME content type of a file sent by a client. |
| DataStream
|
Gets a Stream object which allows access to the data within the
uploaded file data. |
| Exists
|
Gets a value indicating whether a file was uploaded or
not. |
| Extension
|
Gets the file name extension that should be associated with
this file. |
| FileName
|
Gets the path to the file on the client's machine. |
| InputStream
|
Gets a Stream object which allows access to the
data within the uploaded file. |
| MacBinary
|
Gets a value indicating whether the raw upload data was encoded
in MacBinary. |
| RawFileName
|
Gets the name of the file on the client's machine as raw
data. |
| RawStream
|
Gets a Stream object which allows access to the raw upload
data. |
| RezStream
|
Gets a Stream object which allows access to the resource fork
(if any) within the uploaded file. |
| TempFile
|
Gets the path to any temporary file associated with the
upload. |
| Text
|
Gets the text contained within an uploaded file as a
string. |
| URLSafeFileName
|
Gets the name of the file on the client's machine in a URL safe
format. |
| WinSafeFileName
|
Gets the name of the file on the client's machine in a Windows
safe format. |