Use ClamAV Antivirus Scanning
FileCloud does not provide support for ClamAV or its virus signature databases, which are third-party software applications. If you need assistance with your ClamAV configuration or setup please check the ClamAV Troubleshooting FAQ.
ClamAV integration with Azure/S3 external networks is not supported.
You can configure FileCloud to scan uploaded files using ClamAV, an open source antivirus software.
ClamAV is available for:
- Windows
- Linux
- The incoming file is deleted.
- An alert is displayed in the admin portal.
- A toast is displayed in the user portal.
- An entry is added in the audit log about virus detection in the file and subsequent deletion of the file.
To Use ClamAV
If scanning fails
If scanning fails because the ClamAV server is down, a message appears on your screen, and your Manage Alerts page displays the warning:
Unable to communicate with ClamAV Server. Check immediately.
By default, if ClamAV fails to scan a file because the ClamAV server is down, the file is not deleted.
To automatically delete files if ClamAV scan fails because the ClamAV server is unavailable:
- Open the configuration file:
Windows: XAMPP DIRECTORY/htdocs/config/cloudconfig.php
Linux: /var/www/config/cloudconfig.php Add the line:
define("TONIDOCLOUD_CLAMAV_DELETE_ON_SCAN_FAIL", "1");
Now, when scan fails, the file is deleted, and the audit log displays the message: ClamAV removed [FILE_PATH] due to scan fail.
If TONIDOCLOUD_CLAMAV_DELETE_ON_SCAN_FAIL is enabled and the CLAMAV server is not available, FileCloud does not allow files to be uploaded.