R2 Bucket File multichunk upload doesn't work.

const chunk = await request.arrayBuffer();
const multipartUpload = env.BRIEFLI_PUBLIC_FILES.resumeMultipartUpload(key, uploadId);
const chunkUint8Array = new Uint8Array(chunk);
const uploadedPart: R2UploadedPart = await multipartUpload.uploadPart(partNumber, chunkUint8Array);
const chunk = await request.arrayBuffer();
const multipartUpload = env.BRIEFLI_PUBLIC_FILES.resumeMultipartUpload(key, uploadId);
const chunkUint8Array = new Uint8Array(chunk);
const uploadedPart: R2UploadedPart = await multipartUpload.uploadPart(partNumber, chunkUint8Array);
In the last part it's getting error of this: stack: 'DevalueError: Cannot stringify arbitrary non-POJOs. It's not worker, it's code in my Next project, How to fix it? Thanks
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?