Adding mime types with plugin
-
I’ve tried a few plugins to add mime types including the PJW Mime Config plugin; and, adding this code to a themes
functions.php
file could probably work, too, for a non-WPMS site. But I need these new mime-types allowed throughout the network.So I’ve written my own plugin to do the trick. After looking at info from the codex as well several blog posts, this is what I’ve come up with:
[Code moderated as per the Forum Rules. Please use the pastebin]
After activating the plugin on a 3.2.1 WPMS as well as a single 3.2.1 install, I’m experiencing problems. Upon activation:
The plugin generated 3 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
Then when I attempt uploading a file matching one of the new mime-types I receive my original error message:
Warning: Cannot modify header information – headers already sent by (output started at [server]\wp-content\plugins\tps-mime-types\tps-mime-types.php:1) in [server]\wp-includes\pluggable.php on line 934
I’m still new to WP, so any suggestions on what to do next?
- The topic ‘Adding mime types with plugin’ is closed to new replies.