removed redundant code
This commit is contained in:
parent
e74689e8af
commit
8098667a08
|
@ -355,9 +355,6 @@ class UploadService {
|
||||||
i === chunkCount - 1
|
i === chunkCount - 1
|
||||||
);
|
);
|
||||||
controller.enqueue(encryptedFileChunk);
|
controller.enqueue(encryptedFileChunk);
|
||||||
if (done) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
controller.close();
|
controller.close();
|
||||||
},
|
},
|
||||||
|
@ -367,7 +364,7 @@ class UploadService {
|
||||||
file: {
|
file: {
|
||||||
decryptionHeader,
|
decryptionHeader,
|
||||||
encryptedData: { stream: encryptedFileStream, chunkCount },
|
encryptedData: { stream: encryptedFileStream, chunkCount },
|
||||||
} as fileAttribute,
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -720,7 +717,6 @@ class UploadService {
|
||||||
} else {
|
} else {
|
||||||
uploadChunk = chunk1;
|
uploadChunk = chunk1;
|
||||||
}
|
}
|
||||||
console.log(uploadChunk.length);
|
|
||||||
const response = await HTTPService.put(fileUploadURL, uploadChunk);
|
const response = await HTTPService.put(fileUploadURL, uploadChunk);
|
||||||
resParts.push({
|
resParts.push({
|
||||||
PartNumber: index + 1,
|
PartNumber: index + 1,
|
||||||
|
@ -732,7 +728,6 @@ class UploadService {
|
||||||
{ CompleteMultipartUpload: { Part: resParts } },
|
{ CompleteMultipartUpload: { Part: resParts } },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
console.log(body);
|
|
||||||
await HTTPService.post(multipartUploadURLs.completeUrl, body, null, {
|
await HTTPService.post(multipartUploadURLs.completeUrl, body, null, {
|
||||||
'content-type': 'text/xml',
|
'content-type': 'text/xml',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue