Merge pull request #14341 from Budibase/budi-8550-s3-upload-signed-url-missing-aws-endpoint-when-not
fix AWS datasource when endpoint is unspecified
This commit is contained in:
commit
705dfd96b4
|
@ -304,7 +304,7 @@ export const getSignedUploadURL = async function (ctx: Ctx) {
|
||||||
try {
|
try {
|
||||||
const s3 = new AWS.S3({
|
const s3 = new AWS.S3({
|
||||||
region: awsRegion,
|
region: awsRegion,
|
||||||
endpoint: datasource?.config?.endpoint as string,
|
endpoint: datasource?.config?.endpoint || undefined,
|
||||||
accessKeyId: datasource?.config?.accessKeyId as string,
|
accessKeyId: datasource?.config?.accessKeyId as string,
|
||||||
secretAccessKey: datasource?.config?.secretAccessKey as string,
|
secretAccessKey: datasource?.config?.secretAccessKey as string,
|
||||||
apiVersion: "2006-03-01",
|
apiVersion: "2006-03-01",
|
||||||
|
|
Loading…
Reference in New Issue