In DFS, the FileContent class can be used to update the content of a document. The class has a LocalPath property that should hold the path of the local file, and a Format property that should hold the format of the file. In my implementation, I let the user choose a local file and upload it to the Documentum repository. The problem is I can't always say what's the format of the file based on its extension. For instance, Documentum has a jpeg format rather than jpg, so using the more common extension of jpg will fail. Similarly, a Word 2000 file with a doc extension will have a msw8 format.
I'd rather let Documentum figure out the type based on the name and content, if that's possible. If I leave the Format field black, the file format is just unknown. I can hard-code some extension-to-format conversion, but that'll be disgusting. Is there a way to move the task of format recognition to Documentum?