Antivirus/Malware Scan before Uploading File in DAM AEM6.0
Hi All,
We have the following problem
All assets that are uploaded by dam-authors should be checked for Virus/Maleware before they are saved in the repository. (Upload via damadmin new>file or drag&drop)
The Antivirus/Malware Scan is done on an additional server. The Java code for the check is already avaiable, it takes an file input stream and returns a boolean value ( clean or not ).
What would be the best way to integreate this into AEM?
Where could we get the incomming stream from the upload and call the virus check ?
And how could we abort the upload if the check fails ?
Server is AEM 6.0 SP2
Thanks in advance.