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

uploadSettings.filesPerPackage Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets or sets a number of user-selected files which will be processed and uploaded within a single request.

Syntax

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

Property Value

Type: Number

The number of user-serlected files that will be processed and uploaded within a single request. If more files are selected, they are submitted in separate requests. When this value is 0, all the files are uploaded in one request.

Default value is 0.

Remarks

When this property is greater than 0, Image Uploader sends converted files and metadata for filesPerPackage user-selected files per each request. Typical scenario is when you set this value to 1, i.e. every user-selected file is processed and 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 and allows resuming partially completed upload if it has been broken, etc.

See Also

Reference

Manual