{"id":34384,"date":"2024-03-27T14:59:54","date_gmt":"2024-03-27T14:59:54","guid":{"rendered":"https:\/\/10web.io\/blog\/?p=34384"},"modified":"2024-12-23T11:57:14","modified_gmt":"2024-12-23T11:57:14","slug":"sorry-this-file-type-is-not-permitted-for-security-reasons","status":"publish","type":"post","link":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/","title":{"rendered":"Resolving the \u201cSorry, This File Type is Not Permitted for Security Reasons\u201d Error"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">You&#8217;ve got your file ready to jazz up your site, only to be met with the &#8220;Sorry, This File Type Is Not Permitted for Security Reasons&#8221; error. No, your site isn&#8217;t under attack, nor does it mean your file is malicious. This roadblock is WordPress&#8217;s built-in safeguard, keeping a tight leash on what gets uploaded to ensure your site remains secure and running smoothly.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Unpacking the error<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">This error pops up because WordPress has a curated list of file types it considers safe and supported. When you attempt to upload something outside this list\u2014like an AVIF image file, a relatively new format known for its impressive compression efficiency\u2014WordPress throws up this warning. It&#8217;s less about the specific file being a threat and more about WordPress not recognizing the file type.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error-in-WP.jpg\" alt=\"Sorry, this file type is not permitted error in WP.\" width=\"1560\" height=\"875\" class=\"alignnone size-full wp-image-34397\" srcset=\"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error-in-WP.jpg 1560w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error-in-WP-742x416.jpg 742w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error-in-WP-1484x832.jpg 1484w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error-in-WP-150x84.jpg 150w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error-in-WP-768x431.jpg 768w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error-in-WP-1536x862.jpg 1536w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error-in-WP-371x208.jpg 371w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error-in-WP-600x337.jpg 600w\" sizes=\"auto, (max-width: 1560px) 100vw, 1560px\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">Supported file types in WordPress<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">When you upload a file to your WordPress site, what you&#8217;re essentially doing is introducing a new piece of content to the web&#8217;s vast ecosystem. Here, MIME types play the role of a digital introducer, helping web browsers understand the nature of the file you&#8217;re uploading, whether it&#8217;s an image, a video, a document, or an audio file.<\/span><\/p>\n<p><b>MIME<\/b><span style=\"font-weight: 400;\"> types, standing for Multipurpose Internet Mail Extensions, are essentially the internet&#8217;s way of categorizing content types. Think of it as the digital equivalent of food labeling. Just as labels help you understand what&#8217;s inside a can without opening it, MIME types let browsers know how to treat different files. For example, a .jpg or .png file is recognized as an image, while .mp3 and .wav are audio files. WordPress leverages this system to manage and display the content you upload.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">WordPress supports a broad range of file types, especially the most commonly used ones across the web. These include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Images<\/b><span style=\"font-weight: 400;\">: .jpg, .jpeg, .png, .gif, .ico.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Documents<\/b><span style=\"font-weight: 400;\">: .pdf, .doc, .docx, .ppt, .pptx, .pps, .ppsx, .odt, .xls, .xlsx, .psd.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Audio<\/b><span style=\"font-weight: 400;\">: .mp3, .m4a, .ogg, .wav.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Video<\/b><span style=\"font-weight: 400;\">: .mp4, .m4v, .mov, .wmv, .avi, .mpg, .ogv, .3gp, .3g2.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Additionally, HTML files can also be uploaded, broadening the scope of content you can manage through WordPress.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As technology evolves, new file formats emerge, like the AVIF image format, which offers superior compression without sacrificing quality. WordPress&#8217;s conservative approach means it can lag in supporting such newer formats out of the box.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Variations of the error<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Depending on the context and the platform you&#8217;re using, this error can wear several different masks:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&#8220;Sorry, this file type is not permitted for security reasons.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&#8220;Error: File type not allowed for security reasons.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&#8220;Upload failed: This file type is not supported.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&#8220;Cannot upload this file type for security reasons.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">WordPress file type security error.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&#8220;The uploaded file type is not allowed.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&#8220;File type is not permitted.&#8221;<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Whether you&#8217;re uploading a new theme, a plugin, or just a media file, the essence of the error remains the same: WordPress is putting up a red flag on the file type.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Reasons why this error occurs<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The root of this issue is WordPress&#8217;s security measure designed to prevent the upload of potentially harmful files that could compromise your website&#8217;s safety and integrity. Here&#8217;s why it might rear its head:<\/span><\/p>\n<p><b>Unsupported file types<\/b><span style=\"font-weight: 400;\">: WordPress has a whitelist of allowed file types and extensions for uploads, and if your file doesn&#8217;t match, the door closes.<\/span><\/p>\n<p><b>WordPress configuration<\/b><span style=\"font-weight: 400;\">: The wp-config.php file or plugin settings might have restrictions set, intentionally or not, that limit file uploads.<\/span><\/p>\n<p><b>Hosting restrictions<\/b><span style=\"font-weight: 400;\">: Some hosting services impose their own file type restrictions, adding another layer of gatekeeping.<\/span><\/p>\n<p><b>Security plugins<\/b><span style=\"font-weight: 400;\">: To beef up security, plugins might restrict file types further than WordPress&#8217;s default settings.<\/span><\/p>\n<p><b>Multisite network settings<\/b><span style=\"font-weight: 400;\">: If you&#8217;re on a WordPress Multisite, network admins can apply file type restrictions network-wide.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Initial checks<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Before delving into complex solutions involving changes to your WordPress configuration, it&#8217;s crucial to verify the extension of the file you&#8217;re trying to upload. Incorrect file extensions are a common cause of this error. For instance, attempting to upload an image with a .jpg extension that has been mistakenly saved as .avi can trigger this message.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">How to correct the file extension<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Windows<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Navigate to the folder containing the file.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">If you don&#8217;t see the file extension, open File Explorer, click on <strong>View<\/strong> at the top, and check the box for <strong>File name extensions<\/strong>.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Right-click the file, select <strong>Rename<\/strong>, and change the extension to the correct format (e.g., from .avi to .jpg).<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Press <strong>Enter<\/strong> and confirm the change if prompted.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">Mac<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Open <strong>Finde<\/strong>r and locate the file.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Press <strong>Command + I<\/strong>\u00a0to open the file&#8217;s information window.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the <strong>Name &amp; Extension<\/strong>\u00a0field, change the extension to the correct format (e.g., from .avi to .jpg).<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Close the information window to save your changes.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">If adjusting the file extension resolves the issue, you can proceed to upload the file again. If the error persists, move on to the troubleshooting solutions.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Resolving the \u201cSorry, this file type is not permitted for security reasons\u201d error<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">There are a couple of ways you can go about resolving this issue. Essentially, both methods will achieve the same outcome of adding new file types into the permitted file types of your WordPress installation.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Editing wp-config.php to allow unfiltered uploads<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Enabling the <\/span><b>ALLOW_UNFILTERED_UPLOADS<\/b><span style=\"font-weight: 400;\"> configuration in your WordPress site&#8217;s <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400;\"> file allows you to upload any file type to your WordPress Media Library, bypassing the default security restrictions. This can be particularly useful for uploading file types not typically supported by WordPress. However, it&#8217;s important to proceed with caution, as allowing unfiltered uploads can potentially expose your site to security risks if not managed properly. Below is a detailed guide on how to safely enable this feature.<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">Backup your site<\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Before making any changes to critical WordPress files, creating a complete backup of your site is essential. This precaution ensures that you can restore your site to its previous state if something goes wrong during the process.<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">Editing the wp-config.php file<\/span><\/h4>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Use an FTP client like FileZilla or an SFTP client to connect to your web hosting account. Navigate to the root directory of your WordPress installation.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Locate the <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400;\"> file, right-click on it, and choose the option to edit. The <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400;\"> file contains your WordPress site&#8217;s base configuration details. It&#8217;s located in the root folder of your WordPress installation. If your FTP client doesn&#8217;t support editing, you can download the file to your computer and open it with a text editor like Notepad (Windows) or TextEdit (Mac).<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the editor, scroll to find the line that says <\/span><b>\/* That&#8217;s all, stop editing! Happy blogging. *\/<\/b><span style=\"font-weight: 400;\">. Just above this line, insert the following code:\u00a0<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<pre>define('ALLOW_UNFILTERED_UPLOADS', true);<\/pre>\n<p><span style=\"font-weight: 400;\">This line of code enables unfiltered uploads on your WordPress site.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">After adding the code, save your changes. If you downloaded the file to edit, make sure to re-upload it to the same location in your site&#8217;s root directory.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">For the change to take effect, you need to refresh your WordPress session by logging out and then logging back into your WordPress admin. You should now be able to upload any file to your WordPress website.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Using a plugin for custom file uploads in WordPress<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">For WordPress users seeking an alternative to editing the <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400;\"> file for uploading unsupported file types, the <\/span><a href=\"https:\/\/wordpress.org\/plugins\/wp-extra-file-types\/\"><span style=\"font-weight: 400;\">WP Extra File Types<\/span><\/a><span style=\"font-weight: 400;\"> plugin offers a user-friendly and free solution. This approach not only avoids potential risks associated with direct file edits but also grants more granular control over the types of files you can upload to your site. Here\u2019s how to get started with this plugin.<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">Installing and activating the plugin<\/span><\/h4>\n<ol>\n<li><span style=\"font-weight: 400;\">Log in to your WordPress admin account.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Navigate to <\/span><b>Plugins<\/b><span style=\"font-weight: 400;\"> &gt; <\/span><b>Add New Plugin<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">In the search field search for the <\/span><b>WP Extra File Types <\/b><span style=\"font-weight: 400;\">plugin.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Click on <\/span><b>Install<\/b><span style=\"font-weight: 400;\"> &gt; <\/span><b>Activate<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">Configuring file type settings<\/span><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Extra-file-types-plugin-in-WordPress.jpg\" alt=\"Extra file types plugin in WordPress\" width=\"1560\" height=\"875\" class=\"alignnone size-full wp-image-34439\" srcset=\"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Extra-file-types-plugin-in-WordPress.jpg 1560w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Extra-file-types-plugin-in-WordPress-742x416.jpg 742w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Extra-file-types-plugin-in-WordPress-1484x832.jpg 1484w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Extra-file-types-plugin-in-WordPress-150x84.jpg 150w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Extra-file-types-plugin-in-WordPress-768x431.jpg 768w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Extra-file-types-plugin-in-WordPress-1536x862.jpg 1536w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Extra-file-types-plugin-in-WordPress-371x208.jpg 371w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Extra-file-types-plugin-in-WordPress-600x337.jpg 600w\" sizes=\"auto, (max-width: 1560px) 100vw, 1560px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To configure the file types and the settings:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In your WordPress dashboard, navigate to <\/span><b>Settings<\/b><span style=\"font-weight: 400;\"> &gt; <\/span><b>Extra File Types<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You\u2019ll see a comprehensive list of file types with checkboxes next to them. Scroll through this list and check the boxes next to the file type(s) you wish to enable for uploads on your site.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">After selecting your desired file types, click <\/span><b>Save Changes<\/b><span style=\"font-weight: 400;\"> at the bottom of the page to apply your settings.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">Adding custom file types<\/span><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Adding-custom-file-type-in-Extra-file-types-plugin.jpg\" alt=\"Adding custom file type in Extra file types plugin\" width=\"1560\" height=\"875\" class=\"alignnone size-full wp-image-34438\" srcset=\"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Adding-custom-file-type-in-Extra-file-types-plugin.jpg 1560w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Adding-custom-file-type-in-Extra-file-types-plugin-742x416.jpg 742w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Adding-custom-file-type-in-Extra-file-types-plugin-1484x832.jpg 1484w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Adding-custom-file-type-in-Extra-file-types-plugin-150x84.jpg 150w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Adding-custom-file-type-in-Extra-file-types-plugin-768x431.jpg 768w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Adding-custom-file-type-in-Extra-file-types-plugin-1536x862.jpg 1536w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Adding-custom-file-type-in-Extra-file-types-plugin-371x208.jpg 371w, https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Adding-custom-file-type-in-Extra-file-types-plugin-600x337.jpg 600w\" sizes=\"auto, (max-width: 1560px) 100vw, 1560px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">If the file type you need to upload isn&#8217;t listed, you can add it manually.\u00a0<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Scroll to the bottom of the <\/span><b>Extra File Types<\/b><span style=\"font-weight: 400;\"> settings page.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You will find fields to input the file extension (e.g., `.custom`) and the MIME type (e.g., `application\/custom`). The MIME type is a standard way to identify the nature and format of a file; ensure you input the correct MIME type for your custom file extension.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">After entering the details for your custom file type, click the <\/span><b>Add<\/b><span style=\"font-weight: 400;\"> button next to the entry fields.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Lastly, click <\/span><b>Save Changes<\/b><span style=\"font-weight: 400;\"> to ensure your custom file type is recognized for uploads.<\/span><\/li>\n<\/ol>\n<h2><span style=\"font-weight: 400;\">Final thoughts<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">In this blog, we covered strategies for resolving the &#8220;Sorry, this file type is not permitted for security reasons&#8221; error in WordPress. Starting with a simple check of the file&#8217;s extension, we moved on to modifying the <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400;\"> file for broader upload permissions and introduced the WP Extra File Types plugin as a safer, more customizable solution. Each method was explained with detailed instructions to cater to users with varying levels of technical expertise. We have also emphasized the importance of site backups before making changes and maintaining security while enhancing site functionality. These solutions provide a comprehensive toolkit for WordPress users to manage and troubleshoot file upload issues effectively.<\/span><\/p>\n<p><span><div class=\"website_creation_outer\">\n\t<div class=\"content_holder\">\n\t\t<h4>Accelerate your WordPress website creation with AI<\/h4>\n\t\t<p>Create a custom WordPress website tailored to your business needs 10X faster with 10Web AI Website Builder.<\/p>\n\t<\/div>\n\t<div class=\"cta_holder\">\n\t\t<div class=\"btn\">\n\t\t\t<a href=\"https:\/\/10web.io\/ai-website-builder\/\">\n\t\t\t\tGenerate Your Website\n\t\t\t<\/a>\n\t\t<\/div>\n\t\t<div class=\"subtitle\">\n\t\t\t<img decoding=\"async\" width=\"18px\" height=\"18px\" src=\"https:\/\/10web.io\/blog\/wp-content\/themes\/10web-blog\/images\/shortcodes\/icon_check.svg\"\/>\n\t\t\tNo credit card required\n\t\t<\/div>\n\t<\/div>\n<\/div>\n<\/span><br \/>\n\r\n<style>\r\n  #ctablocks_scrollbox-with-icon_89{\r\n            color: #ffffff;\r\n    border-radius: 6px;\r\n  }\r\n\r\n  #ctablocks_scrollbox-with-icon_89 p{\r\n    color: #ffffff;\r\n  }\r\n  #ctablocks_scrollbox-with-icon_89 .button{\r\n          background-color: rgb(51,57,241);\r\n        color: #ffffff;\r\n    border-color: #3339f1 !important;\r\n  }\r\n  #ctablocks_scrollbox-with-icon_89 .button:hover{\r\n    background: rgba(51,57,241,0.8);\r\n    color: #ffffff;\r\n    opacity: 1;\r\n  }\r\n  #ctablocks_scrollbox-with-icon_89.ctablocks_container {\r\n    left: 100%;\r\n  }\r\n  @media screen and (max-width: 1300px) {\r\n      #ctablocks_scrollbox-with-icon_89.ctablocks_container {\r\n          left: 0;\r\n          margin: 0 auto;\r\n      }\r\n  }\r\n  #ctablocks_scrollbox-with-icon_89 .ctablocks_content {\r\n      background-color: #000000;\r\n  }\r\n<\/style>\r\n<div id=\"ctablocks_scrollbox-with-icon_89\" class=\"ctablocks_container scrollbox-with-icon_type\r\n      \">\r\n\r\n  <div class=\"ctablocks_content clear\">\r\n    <div class=\"ctablocks_content_info\">\r\n              <h4>Say goodbye to website errors<\/h4>\r\n        <h4 class=\"mobile-title\">Fix all the website errors in one click<\/h4>\r\n              <p>Migrate your website to the world's best Managed WordPress Hosting.<\/p>\r\n          <\/div>\r\n    <div class=\"ctablocks_content_button\">\r\n              <a href=\"https:\/\/10web.io\/ai-website-builder\/\" class=\"button\" data-gtag=\"sign-up-blog\" data-buttontype=\"sign-up\" data-gtag=\"cta-89\" data-buttontype=\"cta-scrollbox-with-icon\"\r\n\t        >Migrate For Free<\/a>\r\n            \r\n    <\/div>\r\n  <\/div>\r\n    <span class=\"close_ctablocks\">\r\n      <img decoding=\"async\" class=\"close-icon\" src=\"https:\/\/10web.io\/blog\/wp-content\/plugins\/cta-blocks\/assets\/images\/close_w.svg\" class=\"close\">\r\n      <img decoding=\"async\" class=\"floating-icon\" src=\"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/04\/Info-icon_Blog.png\" alt=\"Say goodbye to website errors\" title=\"Say goodbye to website errors\">\r\n<!--      <img decoding=\"async\" class=\"arrow-icon white\" src=\"\/cta-blocks\/assets\/images\/arrow-icon.svg\" class=\"close\">\r\n-->      <img decoding=\"async\" class=\"arrow-icon purple\" src=\"https:\/\/10web.io\/blog\/wp-content\/plugins\/cta-blocks\/assets\/images\/arrow-icon-purple.svg\" class=\"close\">\r\n  <\/span>\r\n<\/div>\r\n<br \/>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You&#8217;ve got your file ready to jazz up your site, only to be met with the &#8220;Sorry, This File Type Is Not Permitted for Security Reasons&#8221; error. No, your site isn&#8217;t under attack, nor does it mean your file is malicious. This roadblock is WordPress&#8217;s built-in safeguard, keeping a tight leash on what gets uploaded to ensure your site remains&#8230;<\/p>\n","protected":false},"author":39,"featured_media":34448,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"two_page_speed":[],"footnotes":"","tenweb_blog_toc":"<ul><li><a href=\"#unpacking-the-error\">Unpacking the error<\/a><li><a href=\"#supported-file-types-in-wordpress\">Supported file types in WordPress<\/a><li><a href=\"#variations-of-the-error\">Variations of the error<\/a><li><a href=\"#reasons-why-this-error-occurs\">Reasons why this error occurs<\/a><li><a href=\"#initial-checks\">Initial checks<\/a><ul><li><a href=\"#how-to-correct-the-file-extension\">How to correct the file extension<\/a><\/li><\/ul><li><a href=\"#resolving-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error\">Resolving the \u201cSorry, this file type is not permitted for security reasons\u201d error<\/a><ul><li><a href=\"#editing-wp-config-php-to-allow-unfiltered-uploads\">Editing wp-config.php to allow unfiltered uploads<\/a><li><a href=\"#using-a-plugin-for-custom-file-uploads-in-wordpress\">Using a plugin for custom file uploads in WordPress<\/a><\/li><\/ul><li><a href=\"#final-thoughts\">Final thoughts<\/a><\/li><\/ul>","tenweb_blog_competitor_type":"","tenweb_blog_competitor_names":"","tenweb_blog_twb_version":0,"tenweb_blog_type":""},"categories":[509],"tags":[],"class_list":["post-34384","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-errors"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.0 (Yoast SEO v23.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fix &quot;File Type Not Permitted for Security Reasons&quot; | 10Web<\/title>\n<meta name=\"description\" content=\"Learn how to fix the &quot;Sorry, This File Type Is Not Permitted for Security Reasons&quot; error to keep your site secure and running smoothly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Resolving the \u201cSorry, This File Type is Not Permitted for Security Reasons\u201d Error\" \/>\n<meta property=\"og:description\" content=\"Learn how to fix the &quot;Sorry, This File Type Is Not Permitted for Security Reasons&quot; error to keep your site secure and running smoothly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/\" \/>\n<meta property=\"og:site_name\" content=\"10Web - Build &amp; Host Your WordPress Website\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/10Web.io\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-27T14:59:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-23T11:57:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1560\" \/>\n\t<meta property=\"og:image:height\" content=\"875\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sergey Markosyan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@10Web_io\" \/>\n<meta name=\"twitter:site\" content=\"@10Web_io\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sergey Markosyan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Fix \"File Type Not Permitted for Security Reasons\" | 10Web","description":"Learn how to fix the \"Sorry, This File Type Is Not Permitted for Security Reasons\" error to keep your site secure and running smoothly.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/","og_locale":"en_US","og_type":"article","og_title":"Resolving the \u201cSorry, This File Type is Not Permitted for Security Reasons\u201d Error","og_description":"Learn how to fix the \"Sorry, This File Type Is Not Permitted for Security Reasons\" error to keep your site secure and running smoothly.","og_url":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/","og_site_name":"10Web - Build &amp; Host Your WordPress Website","article_publisher":"https:\/\/www.facebook.com\/10Web.io\/","article_published_time":"2024-03-27T14:59:54+00:00","article_modified_time":"2024-12-23T11:57:14+00:00","og_image":[{"width":1560,"height":875,"url":"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error.jpg","type":"image\/jpeg"}],"author":"Sergey Markosyan","twitter_card":"summary_large_image","twitter_creator":"@10Web_io","twitter_site":"@10Web_io","twitter_misc":{"Written by":"Sergey Markosyan","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/#article","isPartOf":{"@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/"},"author":{"name":"Sergey Markosyan","@id":"https:\/\/10web.io\/blog\/#\/schema\/person\/c8350d9b5223c607a2b79f6d4b8a52d6"},"headline":"Resolving the \u201cSorry, This File Type is Not Permitted for Security Reasons\u201d Error","datePublished":"2024-03-27T14:59:54+00:00","dateModified":"2024-12-23T11:57:14+00:00","mainEntityOfPage":{"@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/"},"wordCount":1612,"commentCount":0,"publisher":{"@id":"https:\/\/10web.io\/blog\/#organization"},"image":{"@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/#primaryimage"},"thumbnailUrl":"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error.jpg","articleSection":["WordPress Errors"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/","url":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/","name":"Fix \"File Type Not Permitted for Security Reasons\" | 10Web","isPartOf":{"@id":"https:\/\/10web.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/#primaryimage"},"image":{"@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/#primaryimage"},"thumbnailUrl":"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error.jpg","datePublished":"2024-03-27T14:59:54+00:00","dateModified":"2024-12-23T11:57:14+00:00","description":"Learn how to fix the \"Sorry, This File Type Is Not Permitted for Security Reasons\" error to keep your site secure and running smoothly.","breadcrumb":{"@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/#primaryimage","url":"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error.jpg","contentUrl":"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2024\/03\/Sorry-this-file-type-is-not-permitted-error.jpg","width":1560,"height":875,"caption":"Sorry, this file type is not permitted error"},{"@type":"BreadcrumbList","@id":"https:\/\/10web.io\/blog\/sorry-this-file-type-is-not-permitted-for-security-reasons\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/10web.io\/blog\/"},{"@type":"ListItem","position":2,"name":"Resolving the \u201cSorry, This File Type is Not Permitted for Security Reasons\u201d Error"}]},{"@type":"WebSite","@id":"https:\/\/10web.io\/blog\/#website","url":"https:\/\/10web.io\/blog\/","name":"10Web Blog - Build & Host Your WordPress Website","description":"10Web is an All-in-One Website Building Platform, offering Managed WordPress Hosting on Google Cloud, Beautiful Templates, Premium Plugins and Services.","publisher":{"@id":"https:\/\/10web.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/10web.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/10web.io\/blog\/#organization","name":"10Web","url":"https:\/\/10web.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/10web.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2025\/04\/Logo-768x686-1.png","contentUrl":"https:\/\/10web.io\/blog\/wp-content\/uploads\/sites\/2\/2025\/04\/Logo-768x686-1.png","width":768,"height":686,"caption":"10Web"},"image":{"@id":"https:\/\/10web.io\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/10Web.io\/","https:\/\/x.com\/10Web_io","https:\/\/www.instagram.com\/10web.io\/","https:\/\/www.linkedin.com\/company\/10web\/mycompany\/","https:\/\/www.youtube.com\/c\/10Web"]},{"@type":"Person","@id":"https:\/\/10web.io\/blog\/#\/schema\/person\/c8350d9b5223c607a2b79f6d4b8a52d6","name":"Sergey Markosyan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/10web.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5dee1e06f3b02cc0b043d015850db7ca?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5dee1e06f3b02cc0b043d015850db7ca?s=96&d=mm&r=g","caption":"Sergey Markosyan"},"description":"Sergey Markosyan is the Co-Founder and CTO at 10Web. He leads the development of the 10Web platform, identifies and solves problems in the development process across the organization a true sensei for the engineering team.","sameAs":["https:\/\/www.linkedin.com\/in\/sergey-markosyan\/"],"url":"https:\/\/10web.io\/blog\/author\/sergey\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/posts\/34384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/comments?post=34384"}],"version-history":[{"count":0,"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/posts\/34384\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/media\/34448"}],"wp:attachment":[{"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/media?parent=34384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/categories?post=34384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/10web.io\/blog\/wp-json\/wp\/v2\/tags?post=34384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}