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

ImageUploader.AutoRecoverMaxTriesCount Property

Supported in: ActiveX , Java

Number of tries that should be performed to submit files.

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

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setAutoRecoverMaxTriesCount(value);
value = getImageUploader("ImageUploaderID").getAutoRecoverMaxTriesCount();

Property Value

A non-negative integer value which specify how many attempts for upload to do (including the very first attempt). If you want to disable automatic resuming feature, set this property to 1.

Default value is "1".

Remarks

Time interval between each next retry is configured with the AutoRecoverTimeOut property.

Note

Image Uploader tries to resend the request that has failed. If the request (package) contains more than one file, these files will be resent again. It means that if you use the auto-recovering feature, the optimal value for the FilesPerOnePackageCount property would be 1.

See Also

Manual

Reference