I need to validate the file extension from all sort of types of files that get uploaded. I only have the Base64 string and the filename. I am not allowed to use the file extension from the filename to validate the extension.
I would do it with the magic numbers but I couldn't find a list where all magic numbers from all mime-types/file extensions are listed.
Thanks in advance.