Fix compilation error. If shouldUseMultipart is set we also have to set endpoint to avoid a type error.
This commit is contained in:
parent
2a9b9a539c
commit
5bc1908a59
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue