Topic on Project:Support desk

Summary by RhinosF1
RhinosF1 (talkcontribs)

Hi,

One of our users has reported in https://phabricator.miraheze.org/T5856#114310 that mediawiki is erroring with "File extension ".ttf" does not match the detected MIME type of the file (application/font-sfnt)." when uploading any of the files listed in https://phabricator.miraheze.org/T5856#114313. This MIME type seems to be deceprated but still valid for TTF files although it's not listed in https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/libs/mime/MimeMap.php

Does anyone have any ideas of how to get round this or should we add application/font-sfnt to the map for ttf.

Thanks!

Bawolff (talkcontribs)

If its a valid alt mime type for ttf, You should make a patch to mediawiki adding it as an alias for the type in mime.info

RhinosF1 (talkcontribs)

@Bawolff It seems to be valid but deceprated. I'll go and make a patch tonight. I wasn't too sure whether we ignored it as it's deceprated or if there was a reason it was missing.

Bawolff (talkcontribs)

oh, well maybe its changed since i last looked. If its deprecated, use whatever is currently reccomended

RhinosF1 (talkcontribs)

There is a specfic type for ttf files now as far as I can see. Should this be a wontfix then?