Gets or sets a number of user-selected files which will be processed and uploaded within a single request.
$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();
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.
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.