Browse Source

Added max stream size fix to API

tags/2.0.2
Teknikode 5 years ago
parent
commit
99378c6e30
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      Teknik/Areas/API/Controllers/APIv1Controller.cs

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

@@ -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