mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-25 22:01:16 +00:00
basic architecture change: consul + hangfire
This commit is contained in:
@@ -15,7 +15,10 @@ namespace MalwareMultiScan.Api.Attributes
|
||||
{
|
||||
var maxSize = validationContext
|
||||
.GetRequiredService<IConfiguration>()
|
||||
.GetValue<long>("MaxFileSize");
|
||||
.GetValue<long>("FILE_SIZE_LIMIT");
|
||||
|
||||
if (maxSize == 0)
|
||||
return ValidationResult.Success;
|
||||
|
||||
var formFile = (IFormFile) value;
|
||||
|
||||
|
Reference in New Issue
Block a user