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:
parent
6c5def43a8
commit
1299ef58cf
@ -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…
Reference in New Issue
Block a user