MaxUploadSize (Dundas Upload Control 2.0)

Dundas

MaxUploadSize (Dundas Upload Control 2.0)

Overview | Properties | Methods

The maximum amount of data which can be uploaded to the server.

Syntax

UploadObject.MaxUploadSize = [long]

The MaxUploadSize property syntax has the following parts:

Part

Description

long

The maximum amount of data which can be uploaded to the server (in bytes). Defaults to negative one (no limit).

Remarks

Uploaded data consists of all uploaded files as well as any form data (as a result of a POST operation).

If you do not set this property then the default of negative one (-1) is used and no limit is set.

Calling the Save or SaveToMemory methods of either the control or the NextFile object will result in an exception being thrown if the uploaded data exceeds the maximum allowable limit. As a result no data will be saved and the control's collections will not be populated.

Unlike the MaxFileCount or the MaxFileSize properties if this allowable data limit is exceeded then there will be no available data via the control's Form collection irregardless of when the exception is thrown.

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

See Also: MaxFileCount | MaxFileSize