Aurigma Image Uploader 6.0 Dual
ImageUploader.MaxTotalFileSize Property
See Also Supported in: ActiveX Java

Maximum total file size allowed for upload.

# Syntax

##### Initialize

JavaScript | Copy Code
--- | ---
    <script type="text/javascript" src="iuembed.js"></script>
    <script type="text/javascript">
    var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
    //...other params...
    iu.addParam("MaxTotalFileSize", "0");
    //...other params...
    iu.writeHtml();
    </script>

##### Get/Set Value in Runtime

JavaScript | Copy Code
--- | ---
    getImageUploader("ImageUploaderID").setMaxTotalFileSize(value);
    value = getImageUploader("ImageUploaderID").getMaxTotalFileSize();

##### Property Value

A non-negative integer value that specifies maximum size (in bytes) of all files selected for upload. If the value is `0` then there is no limit.

Default value is "0" (no limit).

# Remarks

Note
Only source file sizes are taken into account. Size of thumbnails and other auxiliary data is disregarded. This property affects the limitation of the upload even if you disable source file upload via the UploadSourceFile property.

# See Also

##### Examples

Specifying Restrictions for Size and Number of Files
Open File Dialog Sample

##### Reference

AllowMultipleSelection Property
FileIsTooLargeText Property
FileIsTooSmallText Property
MaxFileCount Property
MaxFileSize Property
MessageFileSizeIsTooSmallText Property
MessageMaxFileCountExceededText Property
MessageMaxFileSizeExceededText Property
MessageMaxTotalFileSizeExceededText Property
MinFileSize Property
TotalFileSize Property
UploadFileCount Property
UploadFileCountChange Event