I need to know a safe method to detect application/pkcs7-mime or similar files. One way would be to detect the final extension of the file but I would like to know if there is something better than that. In reading it is possible to detect the 'type' attribute of the file but this will not be compiled on all browsers for this type of extension, such as eg. on firefox.
Thank you.