Skip to content

Commit 77405de

Browse files
committed
Enable multipart uploads for all cloudflare uploads via uppy. this fixes upload errors with files < 100MB
1 parent b4976d5 commit 77405de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/react-shared-libraries/src/helpers/uppy.upload.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export const getUppyUploadPlugin = (provider: string, fetch: any, backendUrl: st
2525
return {
2626
plugin: AwsS3Multipart,
2727
options: {
28+
shouldUseMultipart(file : any) {
29+
return true;
30+
},
2831
createMultipartUpload: async (file: any) => {
2932
const arrayBuffer = await new Response(file.data).arrayBuffer();
3033
const fileHash = sha256(Buffer.from(arrayBuffer));

0 commit comments

Comments
 (0)