Hello, there is a small issue with an example to upload to S3 in the wiki.
In case you stream gzip'd content as is shown in the example code, you need to set ContentEncoding parameter to gzip, otherwise the uploaded file won't be properly decoded.
I tested this with JPEG images.
I have added one line to the wiki example but I don't know how to do a wiki PR. Here it is:
Hello, there is a small issue with an example to upload to S3 in the wiki.
In case you stream gzip'd content as is shown in the example code, you need to set ContentEncoding parameter to
gzip
, otherwise the uploaded file won't be properly decoded.I tested this with JPEG images.
I have added one line to the wiki example but I don't know how to do a wiki PR. Here it is:
https://github.com/RichardKnop/aws-sdk-go/wiki/common-examples