Please note that not all files have magic numbers to identify the type, and some magic numbers signature are used in several file types.
But nevertheless, if you want to take the extra step in cybersecurity in order to check if files that are being sent to your application really are what they claim or if you want to build whitelisting, this is a great tool.
Added the .OAP for the Demo.