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

File name with space does not get downloaded #9

Open
fizerkhan opened this issue Nov 5, 2013 · 1 comment
Open

File name with space does not get downloaded #9

fizerkhan opened this issue Nov 5, 2013 · 1 comment

Comments

@fizerkhan
Copy link

When i tried to download file name with space, it throws

The request signature we calculated does not match the signature you provided.
Check your key and signing method.

Other files just work fine.

@icidasset
Copy link

Turns out that you need to do the following:

var url1 = bucket1.getUrl(
  'GET',
  encodeURIComponent('somefile.png'),
  'mybucket',
  10
);

PS. I'm reusing the example from the readme.

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

2 participants