This documentation is for the old version. Go to the latest Upload Suite docs

ImageUploader.MaxFileSize Property

Supported in: ActiveX , Java

Maximum file size which is allowed for upload to the server.

Syntax

Initialize

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

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setMaxFileSize(value);
value = getImageUploader("ImageUploaderID").getMaxFileSize();

Property Value

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

Default value is "0" (no limit).

Remarks

This property limits only a single file. If you want to set limit for all selected files, use the MaxTotalFileSize property.

See Also

Manual

Reference