detect mime types when upload to S3