So I am working in an api that accepts a base 64 encoded file's contents. There is an attribute for file type but apparently the client is sending a file that doesn't match the file type. The file name is irrelevant, they do not send one.
Is there a way to determine the mime type of the file being sent after I decode the file contents?