Re-evaluate a blob to get correct mime type?

We have imported a decent amount of files using a custom importing app, but some of the mimebtypes were not defined so we have blobs that show as “text/plain” when they should be something else. We can download the blob, then remove it from the Nuxeo document, and then add it again and the mime type will be detected correctly. However, this is a very manual process so we are wondering if there is an easy way to create an action that will look at the current blob and then trigger the importer (or something) to redetect the mime type and list it correctly. Has anyone done such a thing?

0 votes

0 answers