Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

WordPress Snippet: Add Uploadable File Types

My Documents Shortcode plugin lets you display uploaded attachments. WordPress limits what kinds of files you can upload, but you might need to upload additional types of files. Here’s an example of how to add new file types to the ones that WordPress will allow. In my case, I needed to upload a Keynote slideshow, which had the file extension .key:


About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
This entry was posted in WordPress and tagged , , , , , , , , . Bookmark the permalink.

4 Responses to WordPress Snippet: Add Uploadable File Types

Leave a Reply

%d bloggers like this: