implemented mime type detection for copy s3