diff --git a/package.js b/package.js index 874d63f..f68966d 100644 --- a/package.js +++ b/package.js @@ -1,7 +1,7 @@ Package.describe({ name: "edgee:slingshot", summary: "Directly post files to cloud storage services, such as AWS-S3.", - version: "0.4.0", + version: "0.4.1", git: "https://github.com/CulturalMe/meteor-slingshot" }); diff --git a/services/aws-s3.js b/services/aws-s3.js index 9a05acd..77f5d2c 100644 --- a/services/aws-s3.js +++ b/services/aws-s3.js @@ -47,6 +47,9 @@ Slingshot.S3Storage = { .extend({ bucket: Meteor.settings.S3Bucket, bucketUrl: function (bucket, region) { + if (region === "us-east-1") + return "https://" + bucket + ".s3.amazonaws.com"; + return "https://" + bucket + ".s3-" + region + ".amazonaws.com"; }, region: Meteor.settings.AWSRegion || "us-east-1",