Restrict Certain File Mime Types in WordPress

  • 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.

bootstrap 4 books

Learn Bootstrap 4 Fast - Books

Learn More

Advertise Here

Written by: Jacob Lett - Jacob is an experienced HubSpot website designer and developer who helps Industrial companies increase revenue by improving their website for awareness, lead generation, and branding.
Category: Common Questions
Tags:

Want to Get Email Updates?

Receive a monthly digest of new tutorials and resources.

Advertise Here