Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name convention of filename #167

Open
ghost opened this issue Feb 15, 2016 · 1 comment
Open

name convention of filename #167

ghost opened this issue Feb 15, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 15, 2016

Hi there,

could it be that the filenames are somehow wrong?

The name that is saved from slingshot is:
https://myBucket.s3-eu-central-1.amazonaws.com/filename/

while the real filename in S3 is:

https://s3.eu-central-1.amazonaws.com/myBucket/filename/

How can that be solved?

Regards

@ghost ghost changed the title wrong filename name convention of filename Feb 15, 2016
@ghost
Copy link
Author

ghost commented Feb 15, 2016

I just found out that one can change the bucketURL as a function(bucketUrl: function (bucket, region)).
It can be found in the default values in meteor-slingshot/services/aws-s3.js

Maybe your source code should be extended by something like:

        if (region === "eu-central-1") {
            bucketDomain = "s3.eu-central-1.amazonaws.com";
            return "https://" + bucketDomain + "/" + bucket;
        }

in the directiveDefault bucketUrl: function.

Also the leading "/" must be removed in order for it to function well.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants