Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

Enable multipart uploads for all cloudflare uploads via uppy. this fixes upload errors with files < 100MB

Sven Herrmann77405deb35cf
diff --git a/libraries/react-shared-libraries/src/helpers/uppy.upload.ts b/libraries/react-shared-libraries/src/helpers/uppy.upload.ts
index 78bd6002c..d8704d56b 100644
--- a/libraries/react-shared-libraries/src/helpers/uppy.upload.ts
+++ b/libraries/react-shared-libraries/src/helpers/uppy.upload.ts
@@ -25,6 +25,9 @@ export const getUppyUploadPlugin = (provider: string, fetch: any, backendUrl: st
return {
plugin: AwsS3Multipart,
options: {
+ shouldUseMultipart(file : any) {
+ return true;
+ },
createMultipartUpload: async (file: any) => {
const arrayBuffer = await new Response(file.data).arrayBuffer();
const fileHash = sha256(Buffer.from(arrayBuffer));