techinfoBiT
  • News
  • Startups
  • Tech
    • Internet
    • Security
  • WebMaster
    • All
    • GEO
    • SEO
    • Server & Hosting
    • Tools
    • WordPress
    'Sorry, This File Type Is Not Permitted for Security Reasons' How To Fix This Error in WordPress Website Development-techinfoBiT

    ‘Sorry, This File Type Is Not Permitted for Security Reasons’ How To Fix This Error in WordPress

    What is DMARC Record in DNS and Why It is Important For Email Security-techinfoBiT

    What is DMARC Record in DNS and Why It is Important For Email Security?

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server - techinfoBiT-SHA-256,Ubuntu Server, Server Solution, Linux Hashing, File Integrity, Cryptographic Hash, sha256sum, Hash Generation

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024 - techinfoBiT

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024

    What is Google Analytics 4 and How to Setup GA4 for Websites - techinfoBiT

    What is Google Analytics 4 and How to Setup GA4 for Websites?

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily - techinfoBiT

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily

  • Science Space
  • Gadgets
    • Laptop & PCs
    • Mobile Phones
    • Wearables
  • More
    • How-To Guides
    • Reviews
    • Telecom
    • Applications
    • Press Release
No Result
View All Result
Services
techinfoBiT
  • News
  • Startups
  • Tech
    • Internet
    • Security
  • WebMaster
    • All
    • GEO
    • SEO
    • Server & Hosting
    • Tools
    • WordPress
    'Sorry, This File Type Is Not Permitted for Security Reasons' How To Fix This Error in WordPress Website Development-techinfoBiT

    ‘Sorry, This File Type Is Not Permitted for Security Reasons’ How To Fix This Error in WordPress

    What is DMARC Record in DNS and Why It is Important For Email Security-techinfoBiT

    What is DMARC Record in DNS and Why It is Important For Email Security?

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server - techinfoBiT-SHA-256,Ubuntu Server, Server Solution, Linux Hashing, File Integrity, Cryptographic Hash, sha256sum, Hash Generation

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024 - techinfoBiT

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024

    What is Google Analytics 4 and How to Setup GA4 for Websites - techinfoBiT

    What is Google Analytics 4 and How to Setup GA4 for Websites?

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily - techinfoBiT

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily

  • Science Space
  • Gadgets
    • Laptop & PCs
    • Mobile Phones
    • Wearables
  • More
    • How-To Guides
    • Reviews
    • Telecom
    • Applications
    • Press Release
No Result
View All Result
techinfoBiT

‘Sorry, This File Type Is Not Permitted for Security Reasons’ How To Fix This Error in WordPress

techinfoBiT by techinfoBiT
October 18, 2024
Reading Time: 5 mins read
Share on FacebookShare on Twitter > XShare via WhatsAppShare on LinkedIn

WordPress is the most popular platform for building cost-effective, high-performance websites for all business needs. It is one of the most used platforms for building websites;  As of 2023, more than 800 million websites are using the WordPress ecosystem, which is more than 43% of all websites around the globe. Roughly 36% of eCommerce and over 63% of CMS websites are based on the WordPress platform.

If you have a WordPress website then you might have faced the issue where WordPress restricts certain file types from being uploaded due to security concerns. You might have encountered the error message “Sorry, this file type is not permitted for security reasons,” follow the following steps to resolve it.

You might also like

How to Install Let's Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Website - techinfoBiT

How to Install Let’s Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Websites

June 3, 2026
How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS-techinfoBiT

How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS

June 2, 2026

WordPress has a built-in restriction for uploading specific file types to prevent vulnerabilities. By default, common formats like .jpg, .png, and .pdf are permitted, but lesser-used or custom file types like .svg might be blocked.

What Are Allowed File Types by WordPress?

Before diving into fixes, verify the type of file you are trying to upload. WordPress supports the following formats:

  • Images: .jpg, .jpeg, .png, .gif
  • Documents: .pdf, .doc, .pptx, .odt
  • Audio:  .mp3, .ogg
  • Video: .mp4, .mov

If you are trying to upload the file type which is not listed above then you may get the error as “Sorry, This File Type Is Not Permitted for Security Reasons” To continue uploading the file you’ll need to make adjustments to allow its upload.

'Sorry, This File Type Is Not Permitted for Security Reasons' How To This Error in WordPress - techinfoBiT

Allow Custom or More File Type Upload in WordPress:

Option 1: Using Available WordPress Plugin:

There are multiple ways to resolve this, the easier and safer way is to find and install a plugin which can help in uploading more file types on the website. You may try plugins like Enhanced Media Library, WP Extra File Types, File Manager etc. These plugins will help you enable an option where you can add permitted Multipurpose Internet Mail Extensions (MIME) types for upload to WordPress.

These plugins or other plugins similar to these will give an option in settings from where you can select the different file type you want to be allowed to upload on your website.

Option 2: By Modifying wp-config.php File:

The ‘wp-config.php’ file is one of the most crucial components of a WordPress site as it stores key configuration settings and sensitive credentials. Due to its critical nature, any modifications must be made with extreme caution. Even a small error in this file could lead to the site going offline. Therefore, it is recommended that only individuals with experience in PHP handle these changes to avoid potential issues.

  • Access the wp-config.php file via SFT/FTS or a plugin, and edit the file with available options.
  • Add the following line without interrupting the existing structure of the wp-config.php file
  • define('ALLOW_UNFILTERED_UPLOADS', true);
  • Now save it.
  • Try uploading the required files.

Option 2: By Modifying  Theme’s “functions.php” File:

Modifying the ‘functions.php’ file is equally critical for the active theme of a WordPress site. Any changes should be made with great caution and only by those with at least a basic understanding of PHP. Even minor mistakes can cause significant issues on the website, so it’s important to proceed carefully when editing this file.

  • Access the server folder for the WordPress website using sFTP/FTP/Plugins
  • Now, go to /wp-content/themes/
  • Inside the active theme folder, look for the “functions.php”
  • function add_custom_mime_types($mimes) {
    $mimes['svg'] = 'image/svg+xml'; // Example for SVG files
    return $mimes;
    }
    add_filter('upload_mimes', 'add_custom_mime_types');
  • This function allows specific file types, such as ‘.svg’, to bypass the restriction. You can add mimes for other file types also, for example, to allow the upload of .doc files you need to add the following line;
  • $mimes['doc'] = 'application/msword';

Disable Security Plugins Temporarily:
If you are still not able to upload specific files after trying the above methods then try deactivating the Security Plugins installed (if any). Sometimes, security plugins like WordFence or Sucuri may block specific uploads. Temporarily disabling these plugins could identify if they’re the cause of the error. If ‘upload’ is working after deactivating the plugin then you may try tweaking the plugin settings, or consider activating the security plugin again after completing the upload.

Check For The Multisite Restrictions:
If you’re using a WordPress multisite network, file upload rules may be stricter. Admins of multisite networks can adjust the allowed file types under Network Admin > Settings > Upload Settings The same can also be useful in the case of the multisite.

Conclusion:
By adjusting the ‘functions.php’ file or using a plugin, you can safely enable additional file types for upload in WordPress while maintaining security. Hire us

We offer adaptive Digital Services to suit your tailored requirements. Hire us to get expert support for these and other WordPress needs. Explore our WordPress Website Development, Website Security & Maintenance services for more…

Tags: WebMasterWordPressWordPress Permission ErrorWordPress SolutionsWordPress Websites
ShareTweetSendShare
Previous Post

What is DMARC Record in DNS and Why It is Important For Email Security?

Next Post

Acer Launches Nitro V16 with Latest Intel Processors for Gamers and Creators

techinfoBiT

techinfoBiT

Related Articles

How to Install Let's Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Website - techinfoBiT

How to Install Let’s Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Websites

by Nishant Kumar
June 3, 2026
0

One of the final and most important steps when launching a website or web application is enabling HTTPS. Whether you're hosting a WordPress website, a Spring Boot application, a Laravel...

How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS-techinfoBiT

How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS

by Nishant Kumar
June 2, 2026
0

Deploying a Spring Boot application on a VPS involves more than simply uploading application files to a server. A production deployment typically includes a Java runtime, a PostgreSQL database, a...

SEO Is Not Dead, But It Is No Longer Enough- The Rise of GEO and AI Visibility-techinfoBiT

SEO Is Not Dead, But It Is No Longer Enough: The Rise of GEO and AI Visibility

by Nishant Kumar
May 28, 2026
0

Picture this. A potential customer pulls out their phone and asks ChatGPT which cybersecurity firm in India they should trust for enterprise protection. ChatGPT thinks for two seconds, assembles an...

Jio and Azure Partnership- Revolutionising India’s Cloud Landscape - techinfoBiT

Jio and Azure Partnership: Revolutionising India’s Cloud Landscape

by Nishant Kumar
July 4, 2025
0

The collaboration of Reliance Jio and Microsoft Azure was indeed a landmark for the Indian cloud ecosystem. Reliance Jio, the telecom giant under Reliance Industries Limited, partnered with Microsoft in...

Load More
Next Post
Acer-Launches-Nitro-V16-with-Latest-Intel-Processors-for-Gamers-and-Creators.-Key-Specifications-of-Acer-Nitro-V-16-Laptop

Acer Launches Nitro V16 with Latest Intel Processors for Gamers and Creators

Leave a Reply Cancel reply

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


This site uses Akismet to reduce spam. Learn how your comment data is processed.

techinfoBiT | Startup & Tech News, Reviews | WebMaster, How-To Guides-Tech Blog-Startup Blog India

techinfoBiT is your go-to source for the latest startup & tech news, technology reviews; WebMaster, SEO tips and how-to guides to help you stay updated and navigate the digital world know more

  • About
  • Contacts
  • Disclaimer
  • Privacy Policy

© 2012-2025 techinfoBiT | All Rights Reserved

No Result
View All Result
  • News
  • Startups
  • Tech
  • WebMaster
  • Gadgets
  • How-To Guides
  • Science Space
  • Services

© 2012-2025 techinfoBiT | All Rights Reserved