GZIP file upload to S3

Using a pre-signed S3 URL to upload a gzip file took some time to figure out so here is what worked for me.

I’m using Spring rest template. Note the content-type and content-encoding headers.

gzip s3 upload