1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed max clamAV stream size

This commit is contained in:
Uncled1023 2018-06-06 15:30:02 -07:00
parent 6c5def43a8
commit 1299ef58cf

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)