WordPress is very restrictive when it comes to file uploads. It’s for security reasons, mainly to prevent bad-behaving users to upload PHP scripts and the like to the blog.
However, if you’re the only one writing posts for your blog, this restriction sometimes is annoying. For example, I do a lot coding in C#. So, when I try to upload a
.cs file (C# source code file) to my blog, the upload is rejected.
Files are approved or rejected based on their file extension, i.e. the few characters after the dot in the file name, like
WordPress maintains an internal list of which file extensions are allowed. Fortunately, WordPress also allows for this list to be extended.
And that’s what my new WordPress plugin does. It’s called Upload File Type Settings Plugin and allows you to extend that list with an easy-to-use user interface. Go, give it a try.