3.1 Configuring Select Files Dialog
An important advantage of XUpload over traditional form-based uploading is the ability to specify the "Select Files" dialog's default directory and file filters. The corresponding properties are Directory and Filter. The usage of the Directory property is straightforward:
XUpload enables you to impose certain restrictions on the files being uploaded, so that the files not meeting the restrictions are rejected before an upload begins. The restrictions are set via the properties MaxFileCount, MaxFileSize, MaxTotalSize and Extensions.
XUpload can be configured to populate its file list automatically upon loading. This is done via tags of the form <PARAM NAME="FileN"> where N is a number greater than 0. When XUpload comes up it attempts to retrieve the PARAMs File1, File2, File3, etc. until a break in the sequence is encountered, and uses the corresponding values to populate its file list. For example:
When browsers upload files to the server via a form, they do not send the "Last Modified" dates together with the files, but XUpload does. The control adds a custom header, X-Last-Date, to the standard Content-Disposition and Content-Type MIME headers used in form-based uploading. When capturing the uploaded files, AspUpload uses this information to preserve the original dates of the files.
The user can have XUpload select all files from an arbitrary folder, and even recursively scan the subfolders via the Select Folder item of the pop-up menu, or by invoking the Select Folder method. The Browse for Folder dialog will pop up enabling the user to select a directory:
Copyright © 1998 - 2010 Persits Software, Inc.
All Rights Reserved.
XUpload™ is a trademark of Persits Software, Inc.