Hello Everyone,
I’m trying to allow my client to upload a otf or ttf file in its article, but I can’t make it work.
I always get the error “The mime type does not match to file extension”.
I’ve already tried to add in media.yaml :
I managed to make ttf work, but otf still won’t work. I check in terminal locally which mime type was my otf and ttf file, and it was font/sfnt for ttf and application/vnd.ms-opentype for otf. It solved it for ttf but otf didn’t work. My question also is, is a mime type always the same on all computers ? Meaning, will a otf always be “application/vnd.ms-opentype” ? And if so, why is mime type for otf in online doc is always “font/otf” ?