From 8c307e1db5a6cc562d64796eb148a3e667a772db Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 20 May 2024 20:45:28 -0400 Subject: [PATCH] fix: The XML you provided was not well-formed with server-to-server S3 uploads larger than multi-part minimum --- server/storage/files/S3Storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/storage/files/S3Storage.ts b/server/storage/files/S3Storage.ts index 3b7661ba8..47a9ca7ff 100644 --- a/server/storage/files/S3Storage.ts +++ b/server/storage/files/S3Storage.ts @@ -103,7 +103,6 @@ export default class S3Storage extends BaseStorage { public store = async ({ body, - contentLength, contentType, key, acl, @@ -121,7 +120,8 @@ export default class S3Storage extends BaseStorage { Bucket: this.getBucket(), Key: key, ContentType: contentType, - ContentLength: contentLength, + // See bug, if used causes large files to hang: https://github.com/aws/aws-sdk-js-v3/issues/3915 + // ContentLength: contentLength, ContentDisposition: this.getContentDisposition(contentType), Body: body, },