[Resolved] Local Font Upload ttf file denied

Home Forums Support [Resolved] Local Font Upload ttf file denied

Home Forums Support Local Font Upload ttf file denied

  • This topic has 6 replies, 2 voices, and was last updated 1 year ago by David.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1172757
    Melanie Swan

    Hello,

    I was following the tutorial how to host fonts on GP locally. Unfortunately the ttf file was not allowed due to security reasons. All other files I could upload. Is there something new in WP?

    I am on PHP 7.4. Newest GP, Newest WP

    Thanks.

    #1172801
    Leo
    Staff
    Customer Support

    Hi there,

    Are you using any security plugins?

    If not then I’d recommend checking with your hosting support.

    #1172870
    Melanie Swan

    Thanks

    #1172905
    Leo
    Staff
    Customer Support
    #2087575
    Rostyslav

    I have the same problem. Called to my hosting and they are not blocking that file. I installed wordpress in local and its also not working. ttf file denied.

    #2087585
    Rostyslav

    I had to temporarily add the following code to wp-config.php:

    define('ALLOW_UNFILTERED_UPLOADS', true);

    And then of course deleted it as soon as I had uploaded the font.

    #2087596
    David
    Staff
    Customer Support

    Hi there,

    glad to hear you found a solution to the issue.
    As a general note – if you have .woff and .woff2 variants of the font then .ttf isn’t really required.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.