uploadSettings.autoRecoveryFilter Property HTML5/Flash Uploader JavaScript

Supported technologies:

Gets or sets a filter for the broken upload auto resume feature.

Syntax

JavaScript Initialize
$au.imageUploaderFlash({
    uploadSettings: {
        //...other params...
        autoRecoveryFilter: "{ 'errorCodes' : [4,0] }",
        //...other params...
    }
})
Get/Set Value at Runtime
$au.imageUploaderFlash('uploaderID').uploadSettings().autoRecoveryFilter(value);
value = $au.imageUploaderFlash('uploaderID').uploadSettings().autoRecoveryFilter();

Property Value

Type: String

A JSON object containing two arrays - errorCodes (Aurigma error codes) and httpCodes. Values listed there will trigger the auto resume feature. Example of the JSON: {errorCodes: [0, 4], httpCodes: [404]}..

Default value is "{ 'errorCodes' : [4,0] }".

Remarks

By default, it restores the upload only if the connection is lost or if server returns 5xx HTTP errors (like "bad gateway", etc). You can use this property if you want to extend this list, e.g. if your server always returns 404 error for any kind of errors.

See Also

Reference