Missing Mime Types

Hi all,


I've got some AutoCAD files available for download on my site. Since they're somewhat valuable we've put permissions on them so that only logged in accounts can access them.



Unfortunately the content type (mime type) is being sent as text/plain, which is making these gigantic binary files open as text in the browser. I've configured the content-type and content-disposition in Apache, but obviously Matrix is its own separate system and ignores these.



I've discovered it keeps a hard-coded list of content types in squiz_matrix/fudge/standards_lists/mime_types.inc, and it's also (maybe) possible to set these values by applying a custom “design” to the DWG files.



I'm just wondering if there's an elegant way of easily applying this to all the assorted AutoCAD files in my system that won't break again next upgrade?

Can you add the mime extension pair to the Matrix mime list and test it, does it work for you?


'dwg' => 'application/acad',





If so, we can add it next release.

Thanks, I'll look into it and report back as to whether it solves the problem. :slight_smile:

Mime list should be editable in matrix. Feature request it

[quote]
Mime list should be editable in matrix. Feature request it

[/quote]



I would have thought the default mime for the File asset should be application/octet-stream so that everything gets treated as an arbitrary byte stream, but that'd work too.



And yes, setting the content-type in mime_types.inc appears to solve the immediate problem. Thanks for the help. :slight_smile: