Works with any backend npm install Zero dependencies

Custom Chunk Endpoints

Point chunk upload and assembly at custom URLs that differ from the main upload endpoint.

(function() {
 new MultipleUpload('#demo', {
 uploadUrl: '/api/upload',
 multiple: true,
 chunked: true,
 chunkSize: '2MB',
 chunkUrl: '/api/files/chunk',
 chunkCompleteUrl: '/api/files/chunk/assemble'
 });
})();

Where the chunk requests go by default

chunkUrl and chunkCompleteUrl both default to null, in which case the component derives them from uploadUrl — the chunk endpoint is the upload base with /chunk appended. Set them explicitly when your API does not follow that shape, or when chunk traffic should go somewhere else entirely.

A third endpoint you get for free

Resume needs to ask the server which chunks it already has, and that status endpoint is derived from chunkUrl by appending /status. So overriding chunkUrl moves the status route with it — useful, and worth knowing before you wonder why a resume request is hitting a path you did not configure.