Gets the collection of uploaded files.

Namespace:  EasyAlgo.EAUpload
Assembly:  EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.0.0

Syntax

C#
public UploadedFileCollection UploadedFiles { get; }
Visual Basic (Declaration)
Public ReadOnly Property UploadedFiles As UploadedFileCollection

Field Value

Type: EasyAlgo.EAUpload..::.UploadedFileCollection
The instance of an UploadedFileCollection class that is associated with Upload object and contains collection of uploaded files.

Remarks

Examples

The following example demonstrates how to retrieve the UploadedFile object by the form field name.
CopyC#
// fileupload.aspx.cs
...
Upload _CurrentUpload = UploadsManager.GetUpload();
UploadedFileCollection _UploadedFiles = _CurrentUpload.UploadedFiles;

// Get a UploadedFile object by form field name
UploadedFile _File = _UploadedFiles["File1"];

string _FileName = _File.ClientFileName;
...    
____________________________

// fileupload.aspx
...
<form id="Form1" method="post" runat="server">
...
    <input type="file" name="File1" id="File1">
...
</form>
...
CopyVB.NET
' fileupload.aspx.vb
...
Dim _CurrentUpload As Upload = UploadsManager.GetUpload
Dim _UploadedFiles As UploadedFileCollection = _CurrentUpload.UploadedFiles

'Get a UploadedFile object by form field name
Dim _File As UploadedFile = _UploadedFiles("File1")

Dim _FileName As String = _File.ClientFileName
...    
____________________________

' fileupload.aspx
...
<form id="Form1" method="post" runat="server">
...
    <input type="file" name="File1" id="File1">
...
</form>
...

See Also