Table of Contents
Uploaded File List

Accessing Uploaded Files on the Server Side

AJAXUploader maintains a list of uploaded files through its PostedFiles property. The list contains all files that are still in its TempFileLocation when the page was loaded. Files that have been moved to FinalFileLocation when the page was loaded are not included in this list. This list is considered "temporary file list" because it only contains files that existed in TempFileLocation.

AJAXUploader also provides an additional AJAXPostedFileList control to maintain the final file list. The final file list contains all files that have already been moved to FinalFileLocation. Follow these steps to use AJAXPostedFileList:

  1. Place an AJAXPostedFileList control on the form;
  2. Set the AJAXUploader's FinalFileList to the ID of the AJAXPostedFileList control;
  3. Set the AJAXUploader's FinalFileLocation property. This property must be set to use AJAXPostedFileList;

Now the AJAXPostedFileList control automatically maintains the list of all uploaded files. Note that AJAXPostedFileList control only maintains the data. It does not display it. The sample project includes a sample that demonstrates how to use a DataGrid control to display the list.

Accessing Uploaded Files on the Client Side

EO.Web AJAXUploader provides a client side AJAXUploader object through which you can query the status of the current upload task, including a list of uploaded files. It also supports two client side events: ClientSideOnProgress and ClientSideOnError. ClientSideOnError is called when an error occurred on the client side. ClientSideOnProgress is being repeatly called while uploading is in progress.