Works with any backend npm install Zero dependencies

Custom Chunk Size

Set a custom chunk size with chunkSize. This example uses 2 MB chunks instead of the default 5 MB, which can be useful for slower connections.

Chunk size: 2 MB
new MultipleUpload(document.getElementById('demo-chunk-size'), {
 uploadUrl: '/api/upload',
 multiple: true,
 chunked: true,
 chunkSize: 2 * 1024 * 1024 // 2 MB
});