UploadedFile Class |
Provides a way to access individual files that have been uploaded by a client via a KaxUpload control.
Namespace: Kettic.AspNet.Controls
The UploadedFile type exposes the following members.
Name | Description | |
---|---|---|
FromHttpPostedFile(HttpPostedFile) |
Creates a UploadedFile instance from HttpPostedFile instance.
| |
FromHttpPostedFile(String, HttpPostedFile) |
Creates a UploadedFile instance from HttpPostedFile instance.
| |
GetExtension |
Returns the extension of the file on the client's computer.
| |
GetFieldValue |
Returns the value of a custom field.
| |
GetIsFieldChecked |
Returns the checked state of a custom field.
| |
GetName |
Returns the name and extension of the file on the client's computer.
| |
GetNameWithoutExtension |
Returns the name of the file on the client's computer without the extension.
| |
SaveAs(String) | Saves the contents of an uploaded file. | |
SaveAs(String, Boolean) | Saves the contents of an uploaded file. |
Name | Description | |
---|---|---|
ContentLength | Gets the size in bytes of an uploaded file. | |
ContentType | Gets the MIME content type of a file sent by a client. | |
FileName |
Gets the fully-qualified name of the file on the client's computer (for example
"C:\MyFiles\Test.txt").
| |
InputStream |
Gets a Stream object which points to the uploaded file to prepare for reading the contents of the file.
|
The UploadedFileCollection class provides access to all files uploaded from a client via single KaxUpload instance as a file collection. UploadedFile provides properties and methods to get information on an individual file and to read and save the file. Files are uploaded in MIME multipart/form-data format and are NOT buffered in the server memory if the KaxUploadModule is used.
The KaxUpload control must be used to select and upload files from a client.
You can specify the maximum allowable upload file size in a machine.config or Web.config configuration file in the maxRequestLength attribute of the <httpRuntime> Element element.