2008-11-25 10:40:54 UTC
Hello.
I'm using jmimemagic to see the real mime type of a file. However i need to see the mime type for DWG and DWF files.
I searched and it seems that i have this:
dwf: drawing/x-dwf
dwg: image/vnd
How can i create a match for this? In magic.xml file
<match>
<mimetype>drawing/x-dwf</mimetype>
<extension>dwf</extension>
<description>dwf file</description>
<test offset="0" type="belong" comparator="=">0x1ba</test>
</match>
and
<match>
<mimetype>image/vnd</mimetype>
<extension>dwg</extension>
<description>MPEG system stream data</description>
<test offset="0" type="belong" comparator="=">0x1ba</test>
</match>
will work? i'm asking because i can't test.... maven2 can't build this package :(
Thanks