Anti-virus scan of files on upload

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
peebee
AppGini Super Hero
AppGini Super Hero
Posts: 356
Joined: 2013-03-21 04:37

Anti-virus scan of files on upload

Post by peebee » 2016-03-14 21:18

I'm looking for suggestions for a means by which to scan uploaded files with an anti virus as the file is being uploaded.

We are currently using ClamAV (https://www.clamav.net) on the server and whilst it works just fine for periodic scanning of files/folders, we are having problems getting it to scan files AS THEY ARE BEING UPLOADED, as this is not a default behaviour of ClamAV.

There is a php extension for ClamAV called php-clamav (https://sourceforge.net/projects/php-clamav) which is designed for the purpose but I understand it is no longer supported since 2014 and that is not a good thing going forward, particularly as we hope to upgrade to php7 in the near future.

Installation will be on a private server (running latest Ubuntu) on which we have unrestricted permissions/access to install anything, so I am open to any suggestions or recommendations out there. Thanks.

Post Reply