How to get uploaded file type in php

This post will help you to get file type of any uploaded file.

That’s it. Try this code and you will get the exact file type.