file-type
file-type copied to clipboard
Support DWG File
@bireycikan I’ve opened a PR for this file format and also tested it on a random DWG file from the net which works fine.
While verifying that 41 43 is correct I also found this list here: https://gist.github.com/ldong/f334b9dcd421c99e094d which states that 41 43 31 30 is also correct.
re: media type... wikipedia says image/vnd.dwg, autodesk says application/vnd.autodesk.autocad.dwg
as for the headers for DWGs - it seems to be just the version numbers on the wikipedia page for dwg - in the case of AC10XX versions (well, AC1015 and above - not sure where you'd be able to find files older than that), anyway