From b6c365135e5265b0e9ccfa70637392e12ea322db Mon Sep 17 00:00:00 2001 From: Christie Baker Date: Wed, 22 Jan 2025 12:41:10 -0600 Subject: [PATCH 1/2] fix: pass full s3 url for aws fud --- packages/form-upload/src/Upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/form-upload/src/Upload.js b/packages/form-upload/src/Upload.js index 079587107..bd8c09689 100644 --- a/packages/form-upload/src/Upload.js +++ b/packages/form-upload/src/Upload.js @@ -72,7 +72,7 @@ const Upload = ({ deliveries: [ { deliveryChannel, - fileURI: u.references[0], + fileURI: isCloud ? u['s3-references'][0] : u.references[0], metadata: typeof fileDeliveryMetadata === 'function' ? fileDeliveryMetadata(u) : fileDeliveryMetadata, }, ], From 4dfb928244d5c1a0c1be0764a220cbe4db4adb65 Mon Sep 17 00:00:00 2001 From: Christie Baker Date: Wed, 22 Jan 2025 12:55:42 -0600 Subject: [PATCH 2/2] fix: fix s3 url for aws fud --- packages/form-upload/src/Upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/form-upload/src/Upload.js b/packages/form-upload/src/Upload.js index bd8c09689..971bc4cef 100644 --- a/packages/form-upload/src/Upload.js +++ b/packages/form-upload/src/Upload.js @@ -72,7 +72,7 @@ const Upload = ({ deliveries: [ { deliveryChannel, - fileURI: isCloud ? u['s3-references'][0] : u.references[0], + fileURI: isCloud ? u.s3References[0] : u.references[0], metadata: typeof fileDeliveryMetadata === 'function' ? fileDeliveryMetadata(u) : fileDeliveryMetadata, }, ],