Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. s3.getSignedUrl('getObject', {Bucket: AWS_BUCKET_NAME, Key: 'myObjectsKey', ContentType: 'image/png'}, function (err, url) {
  2. console.log(err, url);
  3. });
  4.  
  5. { [UnexpectedParameter: Unexpected key 'ContentType' found in params]
  6. message: 'Unexpected key 'ContentType' found in params',
  7. code: 'UnexpectedParameter',
  8. time: Thu Dec 18 2014 01:38:19 GMT-0400 (AST) }
  9.  
  10. StringToSign = HTTP-VERB + "n" +
  11. Content-MD5 + "n" +
  12. Content-Type + "n" +
  13. Expires + "n" +
  14. CanonicalizedAmzHeaders +
  15. CanonicalizedResource;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement