I have an upload form which allowed most of file types to be uploaded. Here they are:
- Image: jpg/jpeg/png/gif ...
- Video: mp4/avi/wmv ...
- another files: doc/pdf/rar/zip/mp3/...
For image file, I know I can use PHP function getimagesize() or something else to make sure it's the real image. But how about the other files such as Video, and documentation ? Is it a real file without faking the extension ?
How to do that?
Thank you! I need your help.