Skip to content

Commit

Permalink
companion: pass endpoint and region to AWS SDK constructor
Browse files Browse the repository at this point in the history
Accidentally removed in #2030. This can cause S3 to reject uploads.
  • Loading branch information
goto-bus-stop committed Mar 9, 2020
1 parent 4e5cad5 commit 1e93f87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@uppy/companion/src/companion.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ const getOptionsMiddleware = (options) => {

const s3ClientOptions = Object.assign({
signatureVersion: 'v4',
endpoint: s3ProviderOptions.endpoint,
region: s3ProviderOptions.region,
// backwards compat
useAccelerateEndpoint: s3ProviderOptions.useAccelerateEndpoint
}, rawClientOptions)
Expand Down

0 comments on commit 1e93f87

Please sign in to comment.