This commit is contained in:
Kieran 2022-08-28 13:38:55 +01:00
parent 51b56fd4d3
commit fd156c9b0b
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -155,8 +155,7 @@ export function FileUpload(props) {
calc.Reset();
let offset = s * splitSize;
let slice = props.file.slice(offset, offset + splitSize, props.file.type);
let segment = await slice.arrayBuffer();
xhr = await xhrSegment(segment, xhr?.file?.id, xhr?.file?.metadata?.editSecret, hash, s + 1, segments);
xhr = await xhrSegment(slice, hash, xhr?.file?.id, xhr?.file?.metadata?.editSecret, s + 1, segments);
if (!xhr.ok) {
break;
}