amazon-s3-url-signer icon indicating copy to clipboard operation
amazon-s3-url-signer copied to clipboard

File name with space does not get downloaded

Open fizerkhan opened this issue 11 years ago • 1 comments

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.

fizerkhan avatar Nov 05 '13 07:11 fizerkhan

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.

icidasset avatar Nov 08 '15 12:11 icidasset