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

Fixed upload API malware scan not using correcct max upload size

This commit is contained in:
Uncled1023 2018-06-06 17:44:45 -07:00
parent 1299ef58cf
commit 2980817d57

View File

@ -62,7 +62,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;
clam.MaxStreamSize = maxUploadSize;
ClamScanResult scanResult = clam.SendAndScanFile(model.file.InputStream);
switch (scanResult.Result)