I need to allow users to upload files onto a server that has an antivirus program running with real-time scanning switched on.
What would be a good design to ensure that infected files are not uploaded to the server.
Questions -
would large files be copied onto disk and then immediately scanned, or would they be scanned as they are copied and not allowed to appear on disk if infected
Should i build a seperate infrastructure around this to specifically ionvoke a scan on the copied file ? this might be an issue if the file is deleted through the real-time scan