I'm trying to create a form to upload HTML5 game files using Contact Form 7 with the "Drag and Drop Multiple File Upload" plugin. However, I'm getting the error "Uploaded file is not allowed for file type" when trying to upload an HTML file.
My setup:
- WordPress (latest version)
- Contact Form 7
- Drag and Drop Multiple File Upload - Contact Form 7 plugin
My form code:
<label>Game Name *
[text* ten-game]
</label>
<label>Game Category *
[text* the-loai-game]
</label>
<label>Game File *
[dnd_multiple_files* file-game limit:10485760 filetypes:html|js|css]
<small>Allowed files: HTML, JS, CSS (Max: 10MB)</small>
</label>
[submit "Submit"]
The file (tactic.html) is only 4MB, well under the limit
I've enabled "Enable to sanitize the multiple file extensions" in plugin settings
I've tried both filetypes:html|js|css and filetypes:html,js,css syntax
filetypes:text/html, can you upload a.htmlfile?