Browse Source

Fixed max clamAV stream size

tags/3.0.0
Uncled1023 2 years ago
parent
commit
1299ef58cf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Teknik/Areas/Upload/Controllers/UploadController.cs

+ 1
- 1
Teknik/Areas/Upload/Controllers/UploadController.cs View File

@@ -78,7 +78,7 @@ namespace Teknik.Areas.Upload.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(data.InputStream);

switch (scanResult.Result)

Loading…
Cancel
Save