Hi guys,
I need to enable user to upload only text file to my server for processing. How can I detect if the file uploaded is a real text file and not other file like virus file. i guess user can rename a virus file to a text file.
thanks & regards,
Mark
How to detect if text file is uploaded ?
Moderator: General Moderators
Re: How to detect if text file is uploaded ?
Maybe the Fileinfo extension?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.