Skip to content

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

Fix compilation error. If shouldUseMultipart is set we also have to set endpoint to avoid a type error.

Sven Herrmann5bc1908a593f
diff --git a/libraries/react-shared-libraries/src/helpers/uppy.upload.ts b/libraries/react-shared-libraries/src/helpers/uppy.upload.ts
index c1ec692ae..bc93b1e4e 100644
--- a/libraries/react-shared-libraries/src/helpers/uppy.upload.ts
+++ b/libraries/react-shared-libraries/src/helpers/uppy.upload.ts
@@ -26,6 +26,7 @@ export const getUppyUploadPlugin = (provider: string, fetch: any, backendUrl: st
plugin: AwsS3Multipart,
options: {
shouldUseMultipart: (file : any) => true,
+ endpoint: '',
createMultipartUpload: async (file: any) => {
const arrayBuffer = await new Response(file.data).arrayBuffer();
const fileHash = sha256(Buffer.from(arrayBuffer));