• Resolved eloquy

    (@eloquy)


    Hi,

    I am using the professional version (v3.2.1) of the plugin.

    I am unable to upload HTML files, e.g. index.html. Can upload other files, e.g. autodownload.css using the same upload dialog with no problems. The shortcode is:

    [wordpress_file_upload uploadpath=”event/2015/horsford-heath” createpath=”true” uploadrole=”administrator,editor,results” captcha=”true” captchatype=”RecaptchaV2 (no account)”]

    The error message is:

    File index.html not uploaded
    Upload failed! File not allowed.

    I tried changing filename to index1.html – still did not upload.
    I tried changing filename to index.txt – file uploaded OK.

    I am sure I have uploaded files of this type before.

    https://ww.wp.xz.cn/plugins/wp-file-upload/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi,

    html files are restricted for security reasons. Older versions of the plugin allowed them, however after a security audit from WordPress I was forced to impose this restriction.

    You can disable it if you know how to tweak php files.

    Nickolas

    Thread Starter eloquy

    (@eloquy)

    Hi,

    Thanks for the information. It’s a bit of a pain, so I’ll have a look at what needs to be changed in the PHP.

    Thanks

    Plugin Author nickboss

    (@nickboss)

    send me an email at [email protected] so that I can send you a solution to overcome this restriction without requiring to change the php code. This way the tweak will work even after plugin updates.

    Nickolas

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot upload HTML file’ is closed to new replies.