Store content-type when writing S3 files