Skip to content

Commit 85df96d

Browse files
authored
Merge pull request #373 from SvenRH/fix-coudflare-altnernate
Enable multipart uploads for all cloudflare uploads via uppy.
2 parents c4326f1 + 5bc1908 commit 85df96d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export const getUppyUploadPlugin = (provider: string, fetch: any, backendUrl: st
2525
return {
2626
plugin: AwsS3Multipart,
2727
options: {
28+
shouldUseMultipart: (file : any) => true,
29+
endpoint: '',
2830
createMultipartUpload: async (file: any) => {
2931
const arrayBuffer = await new Response(file.data).arrayBuffer();
3032
const fileHash = sha256(Buffer.from(arrayBuffer));

0 commit comments

Comments
 (0)