[Support request] Error message

Home Forums Support [Support request] Error message

Home Forums Support Error message

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2367960
    Hans

    I use this routine recommended by you:

    add_filter( 'upload_mimes', function( $mimes ) {
        $mimes['woff']  = 'application/x-font-woff';
        $mimes['woff2'] = 'application/x-font-woff2';
        $mimes['ttf']   = 'application/x-font-ttf';
        $mimes['svg']   = 'image/svg+xml';
        $mimes['eot']   = 'application/vnd.ms-fontobject';
    
        return $mimes;
    } );

    All files can be loaded except ttf. I get an error message that the upload is forbidden! What might be the reason?

    #2368220
    Fernando
    Customer Support

    Hi Hans,

    Try accessing your wp-config.php file through FTP then add define('ALLOW_UNFILTERED_UPLOADS', true); inside the file. Then, add the ttf file, and remove the code in wp-config afterwards.

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