Thank you @utesche. Will look into the permissions and see if we can get that working.
Something that helped me with debugging is adding this line to the file Services/VirusScanner/classes/class.ilVirusScannerClamAV.php
It turns out the code doesn't handle if clamdscan return an error like and allows the file to be uploaded
So wanted to share that.
Something that helped me with debugging is adding this line to the file Services/VirusScanner/classes/class.ilVirusScannerClamAV.php
$this->log->write("Debug (Virus Scanner): " . "; COMMAMD=" . $cmd . "; OUTPUT=" . print_r($out, 1)
It turns out the code doesn't handle if clamdscan return an error like and allows the file to be uploaded
ERROR: Could not connect to clamd on LocalSocket /var/run/clamav/clamd.ctl: No such file or directory
So wanted to share that.