Hate to come in late and at the end of a &quot;solution&quot;, but I wanted to share that I created a plugin with WPMS specifically in mind to allow blogs on a network to upload a variety of mime-types -- without having to hack the core or include it into every theme&#39;s functions.php.<div>

<br></div><div><a href="http://wordpress.org/extend/plugins/ap-extended-mime-types/">http://wordpress.org/extend/plugins/ap-extended-mime-types</a><br clear="all"><div><br></div><div><br></div>Thanks,<br>Josh Maxwell<div>

Web Designer</div><div>Tahlequah Public Schools</div><div><div><br></div><br>
<br><br><div class="gmail_quote">On Fri, May 11, 2012 at 7:00 AM,  <span dir="ltr">&lt;<a href="mailto:wp-edu-request@lists.automattic.com" target="_blank">wp-edu-request@lists.automattic.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Send wp-edu mailing list submissions to<br>
        <a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.automattic.com/mailman/listinfo/wp-edu" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-edu</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:wp-edu-request@lists.automattic.com">wp-edu-request@lists.automattic.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:wp-edu-owner@lists.automattic.com">wp-edu-owner@lists.automattic.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of wp-edu digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: managing Upload Filetypes on WordPress 3.x.x (Whisler, Dave)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 10 May 2012 20:43:53 +0000<br>
From: &quot;Whisler, Dave&quot; &lt;<a href="mailto:dkwhisle@uncc.edu">dkwhisle@uncc.edu</a>&gt;<br>
Subject: Re: [wp-edu] managing Upload Filetypes on WordPress 3.x.x<br>
To: &quot;&#39;<a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a>&#39;&quot; &lt;<a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:469C92EC338A114C995BE4B8A86743291C1B51@RPITSEXMS3.its.uncc.edu">469C92EC338A114C995BE4B8A86743291C1B51@RPITSEXMS3.its.uncc.edu</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
I followed the directions in that weblink and it works perfectly.   Thanks!<br>
Is there any way to put a weblink to this page on the doc page about file uploads (<a href="http://codex.wordpress.org/Uploading_Files" target="_blank">http://codex.wordpress.org/Uploading_Files</a>) so it&#39;s easier to find?<br>


<br>
Dave<br>
-----Original Message-----<br>
From: <a href="mailto:wp-edu-bounces@lists.automattic.com">wp-edu-bounces@lists.automattic.com</a> [mailto:<a href="mailto:wp-edu-bounces@lists.automattic.com">wp-edu-bounces@lists.automattic.com</a>] On Behalf Of Muro, Matthew<br>


Sent: Thursday, May 10, 2012 4:01 PM<br>
To: <a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a><br>
Subject: Re: [wp-edu] managing Upload Filetypes on WordPress 3.x.x<br>
<br>
You do not and should not have to edit the core to add or remove a mime type.  Use the filter upload_mimes.<br>
<br>
<a href="http://codex.wordpress.org/Plugin_API/Filter_Reference/upload_mimes" target="_blank">http://codex.wordpress.org/Plugin_API/Filter_Reference/upload_mimes</a><br>
<br>
Matthew Muro<br>
Web Developer<br>
UA Office of Web Communications<br>
<br>
<br>
<br>
<br>
<br>
On May 10, 2012, at 2:58 PM, Whisler, Dave wrote:<br>
<br>
Joseph,<br>
<br>
I just looked at wp-includes/functions.php (part of core) and the &quot;get_allowed_mime_types&quot; function is what is determining which file types are acceptable or not.<br>
       .accdb is NOT listed in this function, but .mdb is listed in it.<br>
This is why I cannot upload a .accdb file into WP, but I can upload a .mdb file.<br>
<br>
So, even in the single-install of WordPress, the acceptable file types to upload are limited and not easily updated (out of the box).<br>
It appears that either you have to edit wp-includes/functions.php (part of core)  and add/remove file types from the &quot;get_allowed_mime_types&quot; function or you have to use one of the WP plugins (or write your own) to manage the list of allowed file types to upload into WordPress.<br>


<br>
On one of my multi-site installs, I could not upload the .accdb, nor could I upload the .mdb file.<br>
So, I added the mdb and accdb file formats to the &quot;Upload file types&quot; item in the Upload Settings area of multisite network settings.<br>
Afterwhich I could go into one of the sites in this network and upload the .mdb BUT NOT the .accdb file.<br>
Hmmm....   It appears that on a multisite the filetype must be in the &quot;get_allowed_mime_types&quot; function of the wp-includes/functions.php file AND in the &quot;Upload file types&quot; list.<br>
<br>
In reply to your email below:<br>
<br>
The goal is to be able to easily add (or remove) file types from the list of file types that can be uploaded into WordPress.  I need this ability for single-site installs as well as multisite installs.   I don&#39;t want to have to edit the core functions.php file (listed above), because then it becomes a maint. issue when applying WordPress upgrades/patches.<br>


<br>
Does anyone have advice?<br>
<br>
Thanks,<br>
Dave<br>
<br>
David K. Whisler | Oracle &amp; MySQL DBA/Developer, WordPress &amp; Joomla Administrator UNC Charlotte | The William States Lee College of Engineering<br>
9201 University City Blvd. | Charlotte, NC 28223<br>
Phone: <a href="tel:704-687-3964" value="+17046873964">704-687-3964</a> | Fax: <a href="tel:704-687-2352" value="+17046872352">704-687-2352</a><br>
<a href="mailto:dkwhisle@uncc.edu">dkwhisle@uncc.edu</a>&lt;mailto:<a href="mailto:dkwhisle@uncc.edu">dkwhisle@uncc.edu</a>&gt; | <a href="http://www.uncc.edu" target="_blank">http://www.uncc.edu</a><br>
---------------------------------------------------------------------------<br>
If you are not the intended recipient of this transmission or a person responsible for delivering it to the intended recipient, any disclosure, copying, distribution, or other use of any of the information in this transmission is strictly prohibited. If you have received this transmission in error, please notify me immediately by reply e-mail or by telephone at <a href="tel:704-687-3964" value="+17046873964">704-687-3964</a>. Thank you.<br>


<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:wp-edu-bounces@lists.automattic.com">wp-edu-bounces@lists.automattic.com</a>&lt;mailto:<a href="mailto:wp-edu-bounces@lists.automattic.com">wp-edu-bounces@lists.automattic.com</a>&gt; [mailto:<a href="mailto:wp-edu-bounces@lists.automattic.com">wp-edu-bounces@lists.automattic.com</a>] On Behalf Of Joseph Ugoretz<br>


Sent: Thursday, May 10, 2012 3:33 PM<br>
To: <a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a>&lt;mailto:<a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a>&gt;<br>
Subject: Re: [wp-edu] managing Upload Filetypes on WordPress 3.x.x<br>
<br>
Weird indeed and you may have me stumped, but maybe some of the more expert folks on the list can help.<br>
<br>
But just to clarify...<br>
<br>
What you want to do is to be able to use the &quot;Upload file types&quot; item in the Upload Settings area of multisite network settings to add or subtract filetypes?<br>
<br>
Is that right?<br>
<br>
I guess I&#39;m not certain what the goal is here--to have this work in single-site (standard) or multi-site?<br>
<br>
I can vouch for the fact that it does (or should) work in multi-site.  So I&#39;m not sure how the different behavior in single-site really helps?<br>
<br>
<br>
--<br>
Joseph Ugoretz, PhD<br>
Associate Dean of Teaching, Learning and Technology Macaulay Honors College - CUNY<br>
35 West 67th St.<br>
New York, NY 10023<br>
<a href="tel:212.729.2920" value="+12127292920">212.729.2920</a><br>
<a href="http://macaulay.cuny.edu" target="_blank">http://macaulay.cuny.edu</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
On May 10, 2012, at 3:23 PM, Whisler, Dave wrote:<br>
<br>
Joseph,<br>
<br>
Ok, so I tried what you said in a regular install of WordPress 3.3.2 (latest version - not configured for multisite).<br>
I was not able to upload a MS-Access 2007 db file (.accdb) which I created just for this test (just has one table in it with a couple of records...).<br>
However, when I renamed the file to the old MS-Access 2003 db file extension (.mdb file format), then WordPress allowed me to upload it.<br>
<br>
Weird, huh?<br>
<br>
David K. Whisler | Oracle &amp; MySQL DBA/Developer, WordPress &amp; Joomla Administrator UNC Charlotte | The William States Lee College of Engineering<br>
9201 University City Blvd. | Charlotte, NC 28223<br>
Phone: <a href="tel:704-687-3964" value="+17046873964">704-687-3964</a> | Fax: <a href="tel:704-687-2352" value="+17046872352">704-687-2352</a><br>
<a href="mailto:dkwhisle@uncc.edu">dkwhisle@uncc.edu</a> | <a href="http://www.uncc.edu" target="_blank">http://www.uncc.edu</a><br>
---------------------------------------------------------------------------<br>
If you are not the intended recipient of this transmission or a person responsible for delivering it to the intended recipient, any disclosure, copying, distribution, or other use of any of the information in this transmission is strictly prohibited. If you have received this transmission in error, please notify me immediately by reply e-mail or by telephone at <a href="tel:704-687-3964" value="+17046873964">704-687-3964</a>. Thank you.<br>


<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:wp-edu-bounces@lists.automattic.com">wp-edu-bounces@lists.automattic.com</a> [mailto:<a href="mailto:wp-edu-bounces@lists.automattic.com">wp-edu-bounces@lists.automattic.com</a>] On Behalf Of Joseph Ugoretz<br>


Sent: Thursday, May 10, 2012 12:36 PM<br>
To: <a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a><br>
Subject: Re: [wp-edu] managing Upload Filetypes on WordPress 3.x.x<br>
<br>
Hi Dave,<br>
<br>
As far as I&#39;ve seen, that limit on uploaded file types is specific to multisite, not configurable in standard, because the possible security problem of untrusted (or less-trusted) users doesn&#39;t exist in single-user WordPress.  If you&#39;re the single user, it can be assumed that you trust yourself.<br>


<br>
In multisite, though, that option does work fine.  WordPress does utilize it, without any plugins, or at least it always has in our install.  We can add new file types to that list, and files of that type can then be uploaded.  Or conversely, when we remove file types from that list, they can no longer be uploaded.<br>


<br>
So if that&#39;s not working for you, there must be something else wrong.  Maybe php settings?<br>
<br>
If everything&#39;s functioning as it should, as it&#39;s designed to, that list of acceptable file types is workable and effective.<br>
<br>
Joe<br>
<br>
--<br>
Joseph Ugoretz, PhD<br>
Associate Dean of Teaching, Learning and Technology Macaulay Honors College - CUNY<br>
35 West 67th St.<br>
New York, NY 10023<br>
<a href="tel:212.729.2920" value="+12127292920">212.729.2920</a><br>
<a href="http://macaulay.cuny.edu" target="_blank">http://macaulay.cuny.edu</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
On May 10, 2012, at 11:21 AM, Whisler, Dave wrote:<br>
<br>
I need to know the best way to add/remove items from the list of acceptable file types (file extensions) that are permitted in WordPress 3.x.x.<br>
<br>
Standard WordPress (non-multisite):  It does not have any options to add/remove file from the WP Dashboard.<br>
WP MultiSite Installation:  If you go into the network admin Dashboard, it has a field that has a list of acceptable file types here:   Dashboard -&gt; Settings -&gt; Network Settings -&gt;  &quot;Upload file types&quot;.   However, adding a new file type to this list does not seem to enable me to upload a file of this type to any of the sites on this WP network.    What am I missing?<br>


<br>
Why would WordPress have this option listed in the Network configuration on Multisite installations and then not utilize it?     And where is this option on a normal WordPress install?<br>
<br>
The online WordPress codex seems to be silent on this:    <a href="http://codex.wordpress.org/Uploading_Files" target="_blank">http://codex.wordpress.org/Uploading_Files</a><br>
<br>
1.       What is the correct way to accomplish this?<br>
2.       And if it cannot be accomplished without using (or writing a plugin), let me know which Plugins you have used and why.   Below are some plugins that I found (not tested yet) that seem like they might accomplish this.   Does anyone have experience using them on a WP multisite network?    A major concern is that I do not want to be able to set them network-wide - and not have to do any configuration changes on individual sites.<br>


<br>
Below are some Plugins that appear like they might do the job.<br>
<a href="http://wordpress.org/extend/plugins/ap-extended-mime-types/" target="_blank">http://wordpress.org/extend/plugins/ap-extended-mime-types/</a><br>
<br>
<a href="http://wordpress.org/extend/plugins/manage-upload-types/" target="_blank">http://wordpress.org/extend/plugins/manage-upload-types/</a><br>
<br>
<a href="http://wordpress.org/extend/plugins/add-more-files-extensions/" target="_blank">http://wordpress.org/extend/plugins/add-more-files-extensions/</a><br>
<br>
<a href="http://wordpress.org/extend/plugins/uploads/" target="_blank">http://wordpress.org/extend/plugins/uploads/</a><br>
<br>
<br>
In the database for WP Multi-sites, you can run this query to see the same list of upload filetypes as in the Network Settings:<br>
SELECT meta_key, meta_value FROM wp_sitemeta WHERE meta_key=&quot;upload_filetypes&quot;; However, I&#39;ve not found anything like this on a single-site WordPress installation.<br>
<br>
Some people suggest modifying the function.php file in your WordPress theme to do it.   While others have said to modify WordPress core (wp-includes/functions.php - add the filetypes in the &quot;get_allowed_mime_types() function).   However, I&#39;d rather not modify my theme (what if we want to change themes?) or WordPress core (what about upgrades) - as this just adds complications.<br>


<br>
Please let me know how you accomplish this - as I want to best method for the long-run - one that won&#39;t end up causing problems in the future.<br>
<br>
Thanks,<br>
Dave<br>
<br>
David K. Whisler | Oracle &amp; MySQL DBA/Developer, WordPress &amp; Joomla Administrator UNC Charlotte | The William States Lee College of Engineering<br>
9201 University City Blvd. | Charlotte, NC 28223<br>
Phone: <a href="tel:704-687-3964" value="+17046873964">704-687-3964</a> | Fax: <a href="tel:704-687-2352" value="+17046872352">704-687-2352</a><br>
<a href="mailto:dkwhisle@uncc.edu">dkwhisle@uncc.edu</a> | <a href="http://www.uncc.edu" target="_blank">http://www.uncc.edu</a><br>
---------------------------------------------------------------------------<br>
If you are not the intended recipient of this transmission or a person responsible for delivering it to the intended recipient, any disclosure, copying, distribution, or other use of any of the information in this transmission is strictly prohibited. If you have received this transmission in error, please notify me immediately by reply e-mail or by telephone at <a href="tel:704-687-3964" value="+17046873964">704-687-3964</a>. Thank you.<br>


<br>
&lt;ATT00001.c&gt;<br>
<br>
_______________________________________________<br>
wp-edu mailing list<br>
<a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-edu" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-edu</a><br>
_______________________________________________<br>
wp-edu mailing list<br>
<a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-edu" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-edu</a><br>
<br>
_______________________________________________<br>
wp-edu mailing list<br>
<a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-edu" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-edu</a><br>
_______________________________________________<br>
wp-edu mailing list<br>
<a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-edu" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-edu</a><br>
<br>
_______________________________________________<br>
wp-edu mailing list<br>
<a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-edu" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-edu</a><br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
wp-edu mailing list<br>
<a href="mailto:wp-edu@lists.automattic.com">wp-edu@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-edu" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-edu</a><br>
<br>
<br>
End of wp-edu Digest, Vol 35, Issue 6<br>
*************************************<br>
</blockquote></div><br></div></div>