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:


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

Pears – A New Free WordPress Theme for Creat... Whatever project you’re working on, the chances are high that you’ll be using the same snippets of code that you’ve used in your previous projects...
20 Very Handy Tutorials to help you build WordPres... WordPress plugins are a vital piece of the WordPress infrastucture – there are thousands of free and commercial plugins out there that allow you to do...
50 Free and Premium Photo Slideshow Plugins For Wo... Photo slideshows are becoming increasingly common in WordPress themes. They are used frequently on the home page to highlight featured content though ...

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