Cleaning up

This commit is contained in:
Sven Herrmann 2024-10-17 15:11:39 +02:00
parent 77405deb35
commit 2a9b9a539c
1 changed files with 1 additions and 3 deletions

View File

@ -25,9 +25,7 @@ export const getUppyUploadPlugin = (provider: string, fetch: any, backendUrl: st
return {
plugin: AwsS3Multipart,
options: {
shouldUseMultipart(file : any) {
return true;
},
shouldUseMultipart: (file : any) => true,
createMultipartUpload: async (file: any) => {
const arrayBuffer = await new Response(file.data).arrayBuffer();
const fileHash = sha256(Buffer.from(arrayBuffer));