I want to know how to scan the files before uploading it to the server in PHP applications. I also read that it is possible just check the file mime type, is it enough...... The permitted files that can be uploaded is txt, pdf, jpg, gif, png, doc, xls, zip, rar, docx, xlsx.
You can do this using php-clamavlib. Here's a good how-to: http://www.howtoforge.com/scan_viruses_with_php_clamavlib
If I do not use any program to scan the files and uploads files will be examined by administrators. And if they find something wrong the file will be deleted. Will this keep the system secure.