1. Home
  2. Knowledge Base
  3. WordPress
  4. WordPress does not allow uploading a file (font ttf and otf).

WordPress does not allow uploading a file (font ttf and otf).

Some themes or plugins support uploading fonts such as google fonts. The safety regulations of WordPress however refuse to upload these two files .ttf and .otf .

« Unfortunately, this file type is not allowed for security reasons »

Our solution: Temporarily override the security mechanism!

The following line is added to the wp-config.php file:

define('ALLOW_UNFILTERED_UPLOADS', true);

Now you can upload the fonts.

It is strongly recommended to remove the line from the wp-config.php file again.

Dieser Beitrag ist auch verfügbar auf: Deutsch (German)

Was this article helpful?

Related Articles

Submit a Comment

Your email address will not be published. Required fields are marked *

Published on - 29. Apr 2022
Modified on - 27. Mar 2024
Views - 289
Likes - 0

Do you need help?

Kontaktiere uns gerne :-)
Contact Support
Skip to content