MIME Type of Wavefront's OBJ and MTL

Kiruse picture Kiruse · Sep 5, 2013 · Viewed 11k times · Source

I was building a little 3D-application using ThreeJS and WebGL. I purposely chose not to convert models into ThreeJS compatible .json files, instead started building an importer. It works, but I also planned to have the application decide what type of model has been loaded using both file extension and MIME type, the later if the first is unknown.

I've read somewhere that the MIME Type is supposed to be application/wavefront-obj, which would be kind of weird since there is also the model tree, but okay anyways. Though browsing the IANA website for this file type yields no results.

Am I missing something?

Answer

kangax picture kangax · Oct 10, 2013

According to wikipedia, it's "text/plain" for .obj.

I'm guessing it's "text/plain" for .mtl files as well, since there's text in them and since it "is a standard defined by Wavefront Technologies for ASCII files".