Title: Cannot upload HTML file
Last modified: August 30, 2016

---

# Cannot upload HTML file

 *  Resolved [eloquy](https://wordpress.org/support/users/eloquy/)
 * (@eloquy)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-upload-html-file/)
 * 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://wordpress.org/plugins/wp-file-upload/](https://wordpress.org/plugins/wp-file-upload/)

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

 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-upload-html-file/#post-6568275)
 * 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](https://wordpress.org/support/users/eloquy/)
 * (@eloquy)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-upload-html-file/#post-6568292)
 * 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](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-upload-html-file/#post-6568337)
 * send me an email at [info@iptanus.com](https://wordpress.org/support/topic/cannot-upload-html-file/info@iptanus.com?output_format=md)
   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.

 * ![](https://ps.w.org/wp-file-upload/assets/icon-256x256.png?rev=3252590)
 * [Iptanus File Upload](https://wordpress.org/plugins/wp-file-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-file-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-file-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-file-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-file-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-file-upload/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [nickboss](https://wordpress.org/support/users/nickboss/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-upload-html-file/#post-6568337)
 * Status: resolved