Configure the chunk size used during chunked uploads. Smaller chunks provide more granular
progress feedback while larger chunks reduce HTTP overhead. Choose a size that balances
your network conditions and user experience.
Current chunk size: 1 MB
var uploader = AjaxUploader.create('#uploader', {
uploadUrl: '/ajaxupload.axd/chunk',
chunked: true,
chunkSize: 1 * 1024 * 1024, // 1 MB
multiple: true,
onTaskProgress: function(task) {
status.textContent = task.fileName + ': ' +
Math.round(task.percent) + '% (' +
AjaxUploader.formatSize(task.loaded) + ')';
},
onTaskComplete: function(task) {
status.textContent = task.fileName + ' uploaded successfully.';
}
});