S3 was defaulting to application/octet-stream on all files uploaded. So if you hit S3 directly from a browser, the image downloads.
This PR explicitly sets the content type when uploading to S3.
I am using this in a scenario where I have Cloudfront using an S3 static website as the origin instead of Thumbor directly. S3 is configured to redirect 404 errors to the actual Thumbor server. This way, cached result images can be served directly by S3 and Cloudfront.
S3 was defaulting to application/octet-stream on all files uploaded. So if you hit S3 directly from a browser, the image downloads.
This PR explicitly sets the content type when uploading to S3.
I am using this in a scenario where I have Cloudfront using an S3 static website as the origin instead of Thumbor directly. S3 is configured to redirect 404 errors to the actual Thumbor server. This way, cached result images can be served directly by S3 and Cloudfront.