Click or drag to resize
UploadedFileCollectionItem Property (Int32)

Gets an individual UploadedFile object from the file collection.

In C#, this property is the indexer for the UploadedFileCollection class.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public UploadedFile this[
	int index
] { get; }

Parameters

index
Type: SystemInt32
The index of the item to get from the file collection.

Property Value

Type: UploadedFile
The UploadedFile specified by index.
Examples
The following example retrieves the first file object (index = 0) from the collection sent by the client and retrieves the name of the actual file represented by the object.
HttpPostedFile MyUploadedFile = KaxUpload1.UploadedFiles[0];
String MyFileName = MyUploadedFile.FileName;
See Also