Tried uploading over 100mb file using uploadObjectStreamResumable with the block of code below,
const nbChunks = Math.ceil(fileContent.ContentLength / minChunk);
const chunksMap = Array.from({ length: nbChunks }, (elem, idx) => idx);
const promisedObj = await Promise.all(chunksMap.map(chunkIdx => {
const byteOffset = chunkIdx * minChunk;
const chunkBytes = Math.min(fileContent.ContentLength, (chunkIdx + 1) * minChunk) - byteOffset;
return ObjectsApi.uploadObjectStreamResumable(bucket_key, fileName, stream, chunkBytes, byteOffset, fileContent.ContentLength, sessionId);
}));
but getting,
{
"type": "warning",
"code": "Navisworks-EmptyFile",
"message": "There is no geometry that can be displayed"
}
and,
{
"type": "error",
"message": "Unrecoverable exit code from extractor: -1073741829",
"code": "TranslationWorker-InternalFailure"
}
when translating. I've also tried for...of, and reduce when uploading chunks but getting 504 Gateway Timeout issues.