aws / aws-sdk-go

AWS SDK for the Go programming language.
http://aws.amazon.com/sdk-for-go/
Apache License 2.0
8.6k stars 2.06k forks source link

Wiki Addition #480

Closed RichardKnop closed 8 years ago

RichardKnop commented 8 years ago

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

jasdel commented 8 years ago

Thanks for lettings us know @RichardKnop. I've updated the gzip content example.

Creating an issue and letting us know about the update/fix is the best way since Github does not allow wiki PRs.