July 17, 2012

How to Allow or Restrict File Uploads by MIME Type

I recently experienced an issue where the network settings for allowing/disallowing certain file types (MIME types) didn’t work on one of my sites. So I set about writing the function below using the upload_mimes filter to manually edit the permitted MIME types on a specific site…

Related Articles:

[related_posts]

Latest on WordPress (LatestWP) was established in 2010 to serve the WordPress community as a reliable source of information, news, tutorials, tips, themes and plugins reviews, and more. Stay tuned with us at the following Social Media channels.

Related Post

Featured WordPress Plugin: CustomPress This year saw a plethora of CMS plugins leaping onto the scene, plugins that take advantage of WordPress 3.0’s great features. My favorite of these ha...
A Step-by-Step Checklist for Writing Your WordPres... I don't know about you but if I want to do a job right I feel much more comfortable with a checklist to refer to. Otherwise you're just leaving it up ...
Google Analytics Top Content Widget for WordPress We have tested many “popular posts” plugins in the past. Many WordPress websites use these types of plugins to keep their visitors engaged for longer....
How to Remove the Date from Your WordPress Posts There may be all sorts of reasons why you would want to remove the date from your WordPress posts. Whatever the reason, it’s easy enough to do. The Ea...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Pin It on Pinterest

Share This