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

This commit is contained in:
Sven Herrmann 2024-10-17 16:01:18 +02:00
parent 2a9b9a539c
commit 5bc1908a59
1 changed files with 1 additions and 0 deletions

View File

@ -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));