<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>follow the white rabbit &#187; mime-types</title>
	<atom:link href="http://blog.ftwr.co.uk/archives/tag/mime-types/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ftwr.co.uk</link>
	<description>Random commentary...</description>
	<lastBuildDate>Thu, 09 Sep 2010 21:11:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>pjw-mime-config v0.90 released</title>
		<link>http://blog.ftwr.co.uk/archives/2006/09/03/pjw-mime-config-v090-released/</link>
		<comments>http://blog.ftwr.co.uk/archives/2006/09/03/pjw-mime-config-v090-released/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 12:54:31 +0000</pubDate>
		<dc:creator>westi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[inline-uploading]]></category>
		<category><![CDATA[mime-types]]></category>

		<guid isPermaLink="false">http://blog.ftwr.co.uk/archives/2006/09/03/pjw-mime-config-v090-released/</guid>
		<description><![CDATA[A while ago I released a simple plugin which allows you to manage the mime-types supported by the WordPress inline-uploader. This plugin worked well for most people baring a issue with php shorttags which made it break some sites. However, some people requested an update to the plugin to support adding a large list of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.ftwr.co.uk/archives/2006/04/22/managing-mime-types-for-the-inline-uploader/">A while ago I released a simple plugin which allows you to manage the mime-types</a> supported by the WordPress inline-uploader.  This plugin worked well for most people baring a issue with php shorttags which made it break some sites.  However, some people requested an update to the plugin to support adding a large list of mime-types from a file.  I am proud to announce that finally after many months of sitting there 95% finished I am ready to release this plugin update.</p>
<p><span id="more-163"></span><br />
Here is the detailed list of changes since the previous version:</p>
<ul>
<li>Added support for mime-types described in a file</li>
<li>Changed the plugin to initialise on the &#8220;init&#8221; hook rather than at include time</li>
<li>Added support for mime-types described in a file</li>
<li>Fixed the shorttags issues</li>
</ul>
<p>As ever the plugin adds a new options page as <em>Options &#8230; Mime-types</em> which allows you to add/delete the extra mime-types.</p>
<p><img id="image147" src="http://blog.ftwr.co.uk/wp-content/uploads/2006/09/mime-type.png" alt="screenshot of the plugins options page" /></p>
<p>By default the following extra mime-types are registered: audio/ac3, audio/MPA and video/x-flv.</p>
<p>The latest version of the plugin may be downloaded here: <a href='http://blog.ftwr.co.uk/wp-content/dropbox/pjw-mime-config.0.90.zip'>pjw-mime-config.0.90.zip</a></p>
<img src="http://blog.ftwr.co.uk/9538f80a/266bbf66/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" />]]></content:encoded>
			<wfw:commentRss>http://blog.ftwr.co.uk/archives/2006/09/03/pjw-mime-config-v090-released/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Managing mime-types for the inline-uploader</title>
		<link>http://blog.ftwr.co.uk/archives/2006/04/22/managing-mime-types-for-the-inline-uploader/</link>
		<comments>http://blog.ftwr.co.uk/archives/2006/04/22/managing-mime-types-for-the-inline-uploader/#comments</comments>
		<pubDate>Sat, 22 Apr 2006 16:26:24 +0000</pubDate>
		<dc:creator>westi</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[inline-uploading]]></category>
		<category><![CDATA[mime-types]]></category>

		<guid isPermaLink="false">http://blog.ftwr.co.uk/archives/2006/04/22/managing-mime-types-for-the-inline-uploader/</guid>
		<description><![CDATA[Some people want to be able to extend the list of mime-types supported by the WordPress inline-uploader. There are a number of different ways in which this could be achieved ranging from adding a option to allow any file type through to a plugin which allows easy configuration of an extra list of mime-types through [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://trac.wordpress.org/ticket/2680" onclick="pageTracker._trackPageview('/outgoing/trac.wordpress.org/ticket/2680?referer=');">Some people</a> want to be able to extend the list of mime-types supported by the WordPress inline-uploader.  There are a number of different ways in which this could be achieved ranging from adding a option to allow any file type through to a plugin which allows easy configuration of an extra list of mime-types through the administration interface.</p>
<p>Seeing as a hook exists (<a href="http://wphooks.flatearth.org/hooks/upload_mimes/" onclick="pageTracker._trackPageview('/outgoing/wphooks.flatearth.org/hooks/upload_mimes/?referer=');">upload_mimes</a>) to filter the list of supported mime-types it is fairly easy to knock together a simple plugin which adds a set of mime-types.</p>
<p><span id="more-148"></span></p>
<pre class="brush: php;">
&lt; ?php
/*
Plugin Name: mime-type adder
Description: Adds extra mime-types
Author: Peter Westwood
Version: 0.01
Author URI: http://blog.ftwr.co.uk/
*/
add_filter('upload_mimes','pjw_upload_mimes');
function pjw_upload_mimes($mimes)
{
$mime_types = array ('ac3' =&gt; 'audio/ac3', 'mpa' =&gt; 'audio/MPA', 'flv' =&gt; 'video/x-flv');
return array_merge($mimes,$mime_types);
}
?&gt;
</pre>
<p>However simple that plugin may be it doesn&#8217;t give you a nice admin interface and an easy way to manage the list in future which is where my new plugin <a href="http://blog.ftwr.co.uk/wordpress/mime-config/">WordPress mime config</a> steps in.  The plugin adds a new options page as <em>Options &#8230; Mime-types</em> which allows you to add/delete the extra mime-types.</p>
<p><img src="http://blog.ftwr.co.uk/wp-content/uploads/2006/04/mime-type.png" id="image147" alt="screenshot of the plugins options page" /></p>
<p>By default the following extra mime-types are registered: audio/ac3, audio/MPA and video/x-flv.</p>
<p>The latest version of the plugin may be downloaded here: <a href="http://blog.ftwr.co.uk/wp-content/dropbox/pjw-mime-config.0.50.zip">pjw-mime-config.0.50.zip</a></p>
<img src="http://blog.ftwr.co.uk/9538f80a/266bbf66/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" />]]></content:encoded>
			<wfw:commentRss>http://blog.ftwr.co.uk/archives/2006/04/22/managing-mime-types-for-the-inline-uploader/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
