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

ImageUploader.FilesPerOnePackageCount Property

Supported in: ActiveX , Java

Number of files which should be sent with a single request.

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("FilesPerOnePackageCount", "-1");
//...other params...
iu.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setFilesPerOnePackageCount(value);
value = getImageUploader("ImageUploaderID").getFilesPerOnePackageCount();

Property Value

An integer value that specifies the number of files that will be sent in a single upload session. If more files are selected, they are submitted in separate requests. When this value is -1, all the files are uploaded in one request.

Default value is "-1" (all the files are uploaded in one request).

Remarks

All files the user selected for upload can separated into several "packages" (requests). This property specifies how many files should be sent in a single package. Typical scenario is when you set this value to 1, i.e. every file is uploaded in a separate request. It gives a number of benefits: reduces amount of memory used on the server to process requests from Image Uploader, allows to resume partially completed upload if it has been broken, etc.

See Also

Manual

Reference