Browse Source

Added max stream size fix to API

master
Teknikode 6 years ago
parent
commit
99378c6e30
  1. 1
      Teknik/Areas/API/Controllers/APIv1Controller.cs

1
Teknik/Areas/API/Controllers/APIv1Controller.cs

@ -51,6 +51,7 @@ namespace Teknik.Areas.API.Controllers @@ -51,6 +51,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;
ClamScanResult scanResult = clam.SendAndScanFile(fileData);
switch (scanResult.Result)

Loading…
Cancel
Save