(if you can install it on that server) try to find some Linux AV program that works in shell
then install it on server, and when some file is uploaded use system(), exec() or some other php function for executing shell commands and check file you just uploaded.
I can't go in details because I never did this but that is main idea
Hope it helps