and-e-h's picture

Hi, I've been trying to get the Filebrowser module to display icons for proprietary MIME/media types. The usual .htaccess method in Apache and fiddling with the server OS (Debian 10) doesn't seem to work, so delving into the code has me wondering if Backdrop derives it's MIME types from the File modules in Core.

If that's the case, how do we go about adding to the existing MIME types without hacking Core modules?

Most helpful answers

Hello @and-e-h,

Not sure if we are talking about the same thing, but are you referring to a missing MIME type from https://github.com/backdrop/backdrop/blob/1.x/core/includes/file.mimetypes.inc#L36 ? If so, then this is something I have noticed when reviewing the newly-added File Entity functionality in the recently-released Backdrop v1.14.

I have filed this issue to update the list of MIME types according to the latest from IANA: https://www.iana.org/assignments/media-types/media-types.xhtml

If I got it wrong, and it is something else that you are trying to achieve, can you please elaborate?

Thanks

Comments

klonos's picture

Hello @and-e-h,

Not sure if we are talking about the same thing, but are you referring to a missing MIME type from https://github.com/backdrop/backdrop/blob/1.x/core/includes/file.mimetypes.inc#L36 ? If so, then this is something I have noticed when reviewing the newly-added File Entity functionality in the recently-released Backdrop v1.14.

I have filed this issue to update the list of MIME types according to the latest from IANA: https://www.iana.org/assignments/media-types/media-types.xhtml

If I got it wrong, and it is something else that you are trying to achieve, can you please elaborate?

Thanks

and-e-h's picture

Hi klonos,

It looks like we're talking about the same problem, but I'd like to see it taken further - give site admins the ability to easily extend the list if need be, to support proprietary file formats not in the list.

The site I'm developing is for a user group of an audio processing program which has it's own project file format and user developed add-on C++ modules. These formats are not (yet) listed in the IANA database and don't conform to any of those present in it. Hence the need to expand  the File module's types list.

klonos's picture

Ah, makes sense. Have you tried going by file extension?

and-e-h's picture

You mean hijack an existing media type for the file extensions I need to use?