'Getting invalid argument error while using s3 presigned url for downloading?
generated presigned url for preview which is working. For downloading I had override the response header i.e., content-type to "application/octet-stream" and content-disposition.But getting invalid argument error while hitting the url.
InvalidArgument
response-content-disposition\u003dattachment; filename="customer master.pdf"\u0026response-content-type\u003d"application/octet-stream"\u0026X-Amz-Algorithm\u003dAWS4-HMAC-SHA256\u0026X-Amz-Date\u003d20220307T101749Z\u0026X-Amz-SignedHeaders\u003dhost\u0026X-Amz-Expires\u003d3600\u0026X-Amz-Credential\u003dAKIAQWQ6NPLXN6RAKTA6/20220307/us-east-1/s3/aws4_request\u0026X-Amz-Signature\u003d427c93aad19403ba6ecde71830cbcaefd5c36cd00caa81a193053f7d396de0e7 is not in the set of overridable response headers. Please refer to the S3 API documentation for a complete list of overridable response headers.
response-content-disposition\u003dattachment; filename="Reltio Data Model - customer master.pdf"\u0026response-content-type\u003d"application/octet-stream"\u0026X-Amz-Algorithm\u003dAWS4-HMAC-SHA256\u0026X-Amz-Date\u003d20220307T101749Z\u0026X-Amz-SignedHeaders\u003dhost\u0026X-Amz-Expires\u003d3600\u0026X-Amz-Credential\u003dAKIAQWQ6NPLXN6RAKTA6/20220307/us-east-1/s3/aws4_request\u0026X-Amz-Signature\u003d427c93aad19403ba6ecde71830cbcaefd5c36cd00caa81a193053f7d396de0e7
1CR9VHXFJW2JNQYH
GtDJh423Tj1YCOw7VVye6kyR+AlnulsSB3YF9WdPzktRGXtzKwNKHrYlfCCMJugHgqaXHbeLNj0=
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
