Merge pull request #373 from SvenRH/fix-coudflare-altnernate
Enable multipart uploads for all cloudflare uploads via uppy.
This commit is contained in:
commit
85df96d118
|
|
@ -25,6 +25,8 @@ export const getUppyUploadPlugin = (provider: string, fetch: any, backendUrl: st
|
|||
return {
|
||||
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