|
|
|
@ -151,7 +151,7 @@ namespace Volo.Abp.BlobStoring |
|
|
|
string name, |
|
|
|
CancellationToken cancellationToken = default) |
|
|
|
{ |
|
|
|
return Provider.GetAsync( |
|
|
|
var stream = Provider.GetOrNullAsync( |
|
|
|
new BlobProviderGetArgs( |
|
|
|
ContainerName, |
|
|
|
Configuration, |
|
|
|
@ -160,6 +160,14 @@ namespace Volo.Abp.BlobStoring |
|
|
|
CancellationTokenProvider.FallbackToProvider(cancellationToken) |
|
|
|
) |
|
|
|
); |
|
|
|
|
|
|
|
if (stream == null) |
|
|
|
{ |
|
|
|
//TODO: Consider to throw some type of "not found" exception and handle on the HTTP status side
|
|
|
|
throw new AbpException($"Could not found the requested BLOB '{name}' in the container '{ContainerName}'!"); |
|
|
|
} |
|
|
|
|
|
|
|
return stream; |
|
|
|
} |
|
|
|
|
|
|
|
public virtual Task<Stream> GetOrNullAsync( |
|
|
|
|