From 5bc1908a593fb706e2742f859682d1262da327eb Mon Sep 17 00:00:00 2001 From: Sven Herrmann Date: Thu, 17 Oct 2024 16:01:18 +0200 Subject: [PATCH] Fix compilation error. If shouldUseMultipart is set we also have to set endpoint to avoid a type error. --- libraries/react-shared-libraries/src/helpers/uppy.upload.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/react-shared-libraries/src/helpers/uppy.upload.ts b/libraries/react-shared-libraries/src/helpers/uppy.upload.ts index c1ec692a..bc93b1e4 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));