added detect_content_type option for AwsS3 adapter