What is the MIME type for TTF files?

CappY picture CappY · Feb 26, 2011 · Viewed 56k times · Source

I can't find correct MIME type for TrueType fonts. I need it because I'm using File Uploading Class (CodeIgniter) to upload files, and I want to allow only TTF to be uploaded. Tried this:

'ttf'   =>  'font/ttf'
'ttf'   =>  'font/truetype'

With no success.

Any ideas ?

Answer

Ori picture Ori · Feb 26, 2011

TTF font files has the following MIME type: font/ttf.

Before February 2017:

TTF does not have a MIME type assigned. You'll have to use the more general application/octet-stream, which is used to indicate binary data with no assigned MIME type.