Skip to content

Commit 5bc1908

Browse files
committed
Fix compilation error. If shouldUseMultipart is set we also have to set endpoint to avoid a type error.
1 parent 2a9b9a5 commit 5bc1908

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const getUppyUploadPlugin = (provider: string, fetch: any, backendUrl: st
2626
plugin: AwsS3Multipart,
2727
options: {
2828
shouldUseMultipart: (file : any) => true,
29+
endpoint: '',
2930
createMultipartUpload: async (file: any) => {
3031
const arrayBuffer = await new Response(file.data).arrayBuffer();
3132
const fileHash = sha256(Buffer.from(arrayBuffer));

0 commit comments

Comments
 (0)