Browse Source

Fixed max clamAV stream size

pull/111/head
Uncled1023 4 years ago
parent
commit
1299ef58cf
  1. 2
      Teknik/Areas/Upload/Controllers/UploadController.cs

2
Teknik/Areas/Upload/Controllers/UploadController.cs

@ -78,7 +78,7 @@ namespace Teknik.Areas.Upload.Controllers @@ -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