@@ -149,28 +149,12 @@ public async Task<BlobMetadata> GetBlobAsync(string blobName, CancellationToken
149
149
} ;
150
150
151
151
var objectMetaResponse = await _s3Client . GetObjectMetadataAsync ( objectMetaRequest ) ;
152
-
153
- var objectAclRequest = new GetACLRequest
154
- {
155
- BucketName = _bucket ,
156
- Key = blobName
157
- } ;
158
-
159
- var objectAclResponse = await _s3Client . GetACLAsync ( objectAclRequest ) ;
160
- var isPublic = objectAclResponse . AccessControlList . Grants . Any ( x => x . Grantee . URI == "http://acs.amazonaws.com/groups/global/AllUsers" ) ;
161
-
152
+
162
153
return new BlobMetadata
163
154
{
164
155
Name = blobName ,
165
- //Container = containerName,
166
- //Length = objectMetaResponse.Headers.ContentLength,
167
- //ETag = objectMetaResponse.ETag,
168
- //ContentMD5 = objectMetaResponse.ETag,
169
- //ContentType = objectMetaResponse.Headers.ContentType,
170
- //ContentDisposition = objectMetaResponse.Headers.ContentDisposition,
171
- //LastModified = objectMetaResponse.LastModified,
172
- //Security = isPublic ? BlobSecurity.Public : BlobSecurity.Private,
173
- //Metadata = objectMetaResponse.Metadata.ToMetadata(),
156
+ Uri = new Uri ( $ "https://s3.amazonaws.com/{ _bucket } /{ blobName } ") ,
157
+ ContentType = objectMetaResponse . Headers . ContentType
174
158
} ;
175
159
}
176
160
@@ -263,7 +247,6 @@ public async Task UploadFileAsync(string blobName, string pathToFile, Cancellati
263
247
}
264
248
}
265
249
266
-
267
250
public async Task UploadFileAsync ( BlobMetadata blobMetadata , string pathToFile , CancellationToken cancellationToken = default )
268
251
{
269
252
using ( var fs = new FileStream ( pathToFile , FileMode . Open , FileAccess . Read ) )
0 commit comments