Restrict Certain File Mime Types in WordPress

  • Updated on
  • read
  • Add to Flipboard Magazine.

I recently heard from a client saying their blog was loading very slowly. The issue was caused from a high resolution image in .tiff format which is generally used for print. In order to block these file types add the following plugin to your mu-plugins folder.

Source

save as restrict-upload-types.php and upload to your mu-plugins folder.

Want to Get Email Updates?

Receive a monthly digest of new tutorials and resources.

Written by: Jacob Lett - Jacob started BootstrapCreative to help others learn web design and development. He has built websites for 10+ years for companies and as a freelancer. He enjoys learning and encouraging others to improve their skills.
Category: Common Questions
Tags:


Advertise Here