Browse Source

Fixed upload API malware scan not using correcct max upload size

tags/3.0.0
Teknikode 2 years ago
parent
commit
2980817d57
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Teknik/Areas/API/Controllers/APIv1Controller.cs

+ 1
- 1
Teknik/Areas/API/Controllers/APIv1Controller.cs View File

@@ -62,7 +62,7 @@ namespace Teknik.Areas.API.Controllers
if (Config.UploadConfig.VirusScanEnable)
{
ClamClient clam = new ClamClient(Config.UploadConfig.ClamServer, Config.UploadConfig.ClamPort);
clam.MaxStreamSize = Config.UploadConfig.MaxUploadSize;
clam.MaxStreamSize = maxUploadSize;
ClamScanResult scanResult = clam.SendAndScanFile(model.file.InputStream);

switch (scanResult.Result)

Loading…
Cancel
Save