• Resolved dmdnz

    (@dmdnz)


    Hello, first of all, congratulations and thank you for this plugin.

    Even though I added the html file extension in the plugin’s settings, I still get this error when uploading files (.html): “This file type is not allowed.”

Viewing 1 replies (of 1 total)
  • Plugin Support add-ons.org Support

    (@yeesupport)

    Hello,

    Thank you so much for your kind words and for using our plugin — we truly appreciate your support!

    Regarding the issue with uploading .html files:
    Even if you’ve added the .html extension in the plugin settings, WordPress itself may still block this file type for security reasons. To resolve this, you can use one of the following solutions:

    Option 1: Add a custom code snippet to allow .html uploads

    You can add the following code to your theme’s functions.php file or use a plugin like Code Snippets:

    function allow_html_upload($mimes) {
    $mimes['html'] = 'text/html';
    return $mimes;
    }
    add_filter('upload_mimes', 'allow_html_upload');

    Option 2: Use a plugin to allow more file types

    We recommend the free plugin File Upload Types by WPForms
    This plugin allows you to safely enable .html and other file types via a friendly interface.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Html File Type’ is closed to new replies.