WordPress refuses to allow to upload a .tex file

For my post covering the usage of XeLaTeX I wanted to upload a LaTeX source file, a .tex file, to WordPress’ Media Library. I was surprised to notice that WordPress refused to do this because of a security policy. I posted a topic on the WordPress support forum to ask for help. When that topic had shifted to the archive pages after a day I decided to consult the IRC channel to receive support. Soon I was told that I could use the PJW Mime Config plugin to allow it. All I needed to do was give the file extension and the MIME-type, application/x-tex, to fix the problem. The plugin’s page referred to a few forum topics on the subject which explain why this was done for security reasons. I can understand that, but it’s not a user-friendly solution. It was difficult and time-consuming to figure out why WordPress refused it and how I could solve it.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top