Upload type
needs to be set to Multipart upload
, otherwise it will create a presigned url for a single-file upload and the multipart upload won’t work.const file = document.getElementById('fileInput').files[0]
const chunkSize = 10 * 1024 * 1024; // 10 MB
const totalParts = Math.ceil(file.size / chunkSize);
file.slice(start, end)
to create each chunk.
url
that the request is sent to, is the url that you receive in the Initiate Multipart Upload step.
PartNumber
and ETag
into the parts array.
url
that the request is sent to, is the url that you receive in the Initiate Multipart Upload step.
url
that the request is sent to, is the url that you receive in the Initiate Multipart Upload step.