I’ve got a Mac server and I’m building PHP code to allow users to upload images, documents, and even video files. Researching this has definitely gotten me nervous, I want the uploaded content to be virus free.
Is building something myself going to be a huge challenge? Would you do it, or would you find some OS or OTS product? (And do you know of any you can recommend)?
Conceptually, what you’re talking about is pretty straightforward. Accepting and processing uploads is pretty simple, it’s definitely not something I think you need to worry about buying a pre-built solution for.
Generally things like images and videos can’t really have ‘viruses’ (unless the viewer application is really poor and lets them run code somehow – also known as ‘Internet Explorer’), but it’s not really difficult to virus-scan them anyway if you’d like to. Just find a command-line scanner that can run on the server (something like Clam AV), and whenever a file is uploaded, run it through the scanner and reject the upload (and log the event) if it fails the scan.