Click or drag to resize
KaxUploadUploadedFiles Property
Provides access to the valid files uploaded by the KaxUpload instance.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public UploadedFileCollection UploadedFiles { get; }

Property Value

Type: UploadedFileCollection
UploadedFileCollection containing all valid files uploaded using a KaxUpload control.
Remarks
The collection contains only the files uploaded with the particular instance of the KaxUpload control. If the KaxUploadHttpModule is used, the uploaded files are removed from the Request.Files collection in order to conserve the server's memory. Else the Request.Files contains all uploaded files as a HttpPostedFile collection and each KaxUpload instance has its own uploaded files as UploadedFileCollection.
Examples
This example demonstrates how to save the valid uploaded files with a KaxUpload control.
foreach (Kettic.AspNetControls.UploadedFile file in KaxUpload1.UploadedFiles)
{
    file.SaveAs(Path.Combine(@"c:\my files\", file.GetName()), true);
}
See Also