uploadSettings.maxConnectionCount Property ActiveX/Java Uploader JavaScript

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets or sets a number of simultaneous connections used to prepare and upload files.

Syntax

JavaScript Initialize
$au.uploader({
    uploadSettings: {
        //...other params...
        maxConnectionCount: 1,
        //...other params...
    }
})
Get/Set Value at Runtime
$au.uploader('uploaderID').uploadSettings().maxConnectionCount(value);
value = $au.uploader('uploaderID').uploadSettings().maxConnectionCount();

Property Value

Type: Number

The number of concurrent upload streams.

Default value is 1.

Remarks

Multiple connections allow you to complete upload process faster. However too large value may noticeably decrease performance of your web server. For example, if you specify 10, ActiveX/Java Uploader will establish up to 10 HTTP connections. It is the same as if 10 different users start uploading files to your website. So, it it not suggested to set up the uploader to upload with more than 3-4 concurrent threads.

See Also

Reference

Manual