To get the file and mimeType of the file in one request ...
using (var client = AWSClientFactory.CreateAmazonS3Client(region))
{
var response = client.GetObject(bucket, key);
var mimeType = response.Headers.ContentType;
return new StreamWithMimeType(response.ResponseStream, mimeType);
}
source
share