MaxFileCount (Dundas Upload Control 2.0)

Dundas

MaxFileCount (Dundas Upload Control 2.0)

Overview | Properties | Methods

The maximum number of files which can be uploaded to the server.

Syntax

UploadObject.MaxFileCount = [long]

The MaxFileCount property syntax has the following parts:

Part

Description

long

The maximum number of files which can be uploaded to the server. Defaults to negative one (no limit).

Remarks

Set this property before calling Save or SaveToMemory in order to limit the number of files a user is allowed to upload. If this limit is exceeded and you call either the control's or the NextFile object's Save or SaveToMemory methods an exception will be raised and the save operation will be cancelled.

Note that if the maximum number of allowable uploads is exceeded as a result of a NextFile object's save operation then any previous uploaded data will still be available from the control's Form collection.

Make sure that you use an On Error Resume Next statement so that any raised exceptions are handled. To retrieve a relevant error string use VBScript's Err.Description property.

 Set this property to negative one (-1) for no limit.

See Also: MaxFileSize | MaxUploadSize