inability to upload .ttf fonts to media library
-
I seem to be unable to upload .ttf or .otf filetype fonts to the media library. Each time I try, I receive the following message:

.woff and .woff2 fonts upload fine, however converting each and every font file I have to these formats is beyond my time and the filesize limit of most conversion sites. please advise.
using Lay Theme on Firefox 82.0.3 (64-bit) on macOS Mojave 10.14.6
website: http://www.angusgaffney.com/about
-
Dear @acsgaffney
What happens when you upload it as a .zip file? do you have the same issue? :)
Best
Richard -
Hey @acsgaffney & @Richard-Keith
I had the same issue and found a solution somewhere on the internet. What helped at my page was:
-
open the wp-config.php
-
navigate to
$table_prefix = 'xyz_'; /** * Für Entwickler: Der WordPress-Debug-Modus.- add the following in between
define('ALLOW_UNFILTERED_UPLOADS', true);- so it looks like this:
$table_prefix = 'xyz_'; define('ALLOW_UNFILTERED_UPLOADS', true); /** * Für Entwickler: Der WordPress-Debug-Modus.- then, I could upload the .ttf file.
After uploading the .ttf, I deleted this line again from the config file, as I am not sure, if this will lead to any other security-related-issues on the Wordpress site...
Greetings from Cologne
Alex -
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login