Browse Source
Merge pull request #11118 from abpframework/liangshiwei/blob
Throw an exception when no BLOB provider used
pull/11147/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
framework/src/Volo.Abp.BlobStoring/Volo/Abp/BlobStoring/DefaultBlobProviderSelector.cs
|
|
|
@ -30,7 +30,12 @@ public class DefaultBlobProviderSelector : IBlobProviderSelector, ITransientDepe |
|
|
|
|
|
|
|
if (!BlobProviders.Any()) |
|
|
|
{ |
|
|
|
throw new AbpException("No BLOB Storage provider was registered! At least one provider must be registered to be able to use the Blog Storing System."); |
|
|
|
throw new AbpException("No BLOB Storage provider was registered! At least one provider must be registered to be able to use the BLOB Storing System."); |
|
|
|
} |
|
|
|
|
|
|
|
if (configuration.ProviderType == null) |
|
|
|
{ |
|
|
|
throw new AbpException("No BLOB Storage provider was used! At least one provider must be configured to be able to use the BLOB Storing System."); |
|
|
|
} |
|
|
|
|
|
|
|
foreach (var provider in BlobProviders) |
|
|
|
|