Look signature for file type
This commit is contained in:
@@ -44,7 +44,7 @@ public class AzureBlobStorageService : IAzureBlobStorageService
|
||||
}
|
||||
|
||||
// Validate content type
|
||||
if (!ContentTypes.IsAllowed(contentType))
|
||||
if (!ContentTypes.IsAllowed(contentType, memoryStream))
|
||||
{
|
||||
_logger.LogInformation($"Blob storage: Unsupported file type {contentType}. Only PNG and JPEG are allowed.");
|
||||
throw new InvalidOperationException("Unsupported file type. Only PNG and JPEG are allowed.");
|
||||
|
||||
Reference in New Issue
Block a user