amazon-s3-url-signer
amazon-s3-url-signer copied to clipboard
File name with space does not get downloaded
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.
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.