{"id":20431,"date":"2025-01-17T12:18:23","date_gmt":"2025-01-17T06:48:23","guid":{"rendered":"https:\/\/themehunk.com\/?p=20431"},"modified":"2025-02-04T12:18:28","modified_gmt":"2025-02-04T06:48:28","slug":"how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","status":"publish","type":"post","link":"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/","title":{"rendered":"5 Ways to Slove: \u201cSorry, This File Type is not Permitted for Security Reasons\u201d Error in WordPress"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Have you got an error like<strong> \u201cSorry this file type is not permitted for security reasons\u201d<\/strong> when you were uploading any file to your media library?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Well, one of our clients has faced this error while uploading a file into the media library, and maybe many more people have faced this same issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s why today we have created this article on how to fix the \u201cSorry This File Type Is Not Permitted for Security Reasons\u201d Error in WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>So let&#8217;s get into it.<\/strong><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/#Why_%E2%80%9CSorry_This_File_Type_is_not_Permitted_for_Security_Reasons%E2%80%9D_Error_comes_out\" >Why \u201cSorry This File Type is not Permitted for Security Reasons\u201d Error comes out?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/#Error_Appears_due_to_wrong_file_format\" >Error Appears due to wrong file format.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/#We_will_tell_you_5_methods_to_fix_this_error\" >We will tell you 5 methods to fix this error.<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/#1-_Using_a_free_WordPress_Plugin\" >1- Using a free WordPress Plugin<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/#2-_By_editing_the_wp-configphp_file\" >2- By editing the wp-config.php file.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/#3-_Edit_Your_Themes_functionsphp_File\" >3- Edit Your Theme\u2019s functions.php File.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/#4-_Add_allowed_file_types_by_changing_the_Multisite_WordPress_settings\" >4- Add allowed file types by changing the Multisite WordPress settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/#5-_Contact_a_developer\" >5- Contact a developer.<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/themehunk.com\/fr\/how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\/#Conclusion\" >Conclusion-<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_%E2%80%9CSorry_This_File_Type_is_not_Permitted_for_Security_Reasons%E2%80%9D_Error_comes_out\"><\/span>Why \u201cSorry This File Type is not Permitted for Security Reasons\u201d Error comes out?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">While uploading any file through the media library many users see this error, and they stuck in it. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">but some small mistakes are caused by some hosting providers or by some other WordPress security reasons.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Probably you may have seen the following, error while uploading any file on the media library. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"97\" src=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/file-type-not-permitted-security-reasons-wordpress-error-fixed-1.png?resize=1024%2C97&#038;ssl=1\" alt=\"\" class=\"wp-image-20437\" srcset=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/file-type-not-permitted-security-reasons-wordpress-error-fixed-1.png?resize=1024%2C97&amp;ssl=1 1024w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/file-type-not-permitted-security-reasons-wordpress-error-fixed-1.png?resize=300%2C28&amp;ssl=1 300w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/file-type-not-permitted-security-reasons-wordpress-error-fixed-1.png?resize=768%2C73&amp;ssl=1 768w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/file-type-not-permitted-security-reasons-wordpress-error-fixed-1.png?w=1536&amp;ssl=1 1536w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This error occurred due to WordPress limiting the types of files that you can upload to your site for security reasons. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes WordPress checks the file \u201c<strong>MIME type<\/strong>\u201d for upload, which may cause an error on upload for some file types (specifically non-image files).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Error_Appears_due_to_wrong_file_format\"><\/span>Error Appears due to wrong file format.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The message Sorry, this file type is not permitted is when you try to upload a file with another format that is not permitted, usually, the error will appear.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By default, WordPress allows you to display the following given file formats.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Image file Types: <\/strong>.jpg, .jpeg, .png, .gif, .ico, etc.<\/li>\n\n\n\n<li><strong>Audio file Types: <\/strong>.mp3, .m4a, .ogg, .wav, etc.<\/li>\n\n\n\n<li><strong>Document file Types:<\/strong> .pdf, .doc, .ppt, .pptx, .xls, .xlsx, .psd, etc.<\/li>\n\n\n\n<li><strong>Video file Types:<\/strong> .mp4, .m4v, .mov, .mkv, .avi, .mpg, etc.<\/li>\n\n\n\n<li><strong>Other File Types: <\/strong>.Zip<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"We_will_tell_you_5_methods_to_fix_this_error\"><\/span><strong>We will tell you 5 methods to fix this error.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Using a free WordPress Plugin.<\/li>\n\n\n\n<li>By editing the <strong>wp-config.php<\/strong> file of your site.<\/li>\n\n\n\n<li>Edit Your Theme\u2019s <strong>functions.php<\/strong> File.<\/li>\n\n\n\n<li>Add allowed file types by changing the Multisite WordPress settings.<\/li>\n\n\n\n<li>Contact a developer. <\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If you upload a file other than the allowed format, an error will appear. To solve this problem, please go to the steps given below. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1-_Using_a_free_WordPress_Plugin\"><\/span>1- Using a free WordPress Plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are various plugins that are capable of fixing your uploading error, Plugins as Enhanced Media Library and Mime Types Plus.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can use any of the plugins, we are going to use the <strong><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/wordpress.org\/plugins\/mime-types-plus\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Mime Types Plus<\/a><\/strong> plugin, to add new permitted MIME types for upload.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to the Plugin area and install &amp; activate the Mime Types Plus Plugin. <strong>Dashboard<\/strong> &gt; <strong>Plugins<\/strong> &gt; <strong>Add<\/strong> <strong>New<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After <a href=\"https:\/\/themehunk.com\/fr\/how-to-install-wordpress-plugin\/\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">Installing the plugin<\/a> now follow the instructions below. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First navigate to <strong>Dashboard<\/strong> &gt; <strong>Mime<\/strong> <strong>Types<\/strong> <strong>Plus<\/strong> &gt; <strong>Edit<\/strong> <strong>Mime<\/strong> <strong>Type<\/strong>, as shown in the screenshot below.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"345\" height=\"128\" src=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/mime-type-edit-1.png?resize=345%2C128&#038;ssl=1\" alt=\"\" class=\"wp-image-20513\" style=\"width:412px;height:153px\" srcset=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/mime-type-edit-1.png?w=345&amp;ssl=1 345w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/mime-type-edit-1.png?resize=300%2C111&amp;ssl=1 300w\" sizes=\"(max-width: 345px) 100vw, 345px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now to have to add a new MIME Type, so for that, you have to add Extension, Mime Type, and File Type.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First add an Extension type, like we have added webp.<\/li>\n\n\n\n<li>Now add Mime Type, as webp\/image<\/li>\n\n\n\n<li>Now select the file type that you want to add as an uploadable file.<\/li>\n\n\n\n<li>Click on Add to create your file type.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"496\" height=\"252\" src=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/mime-type-settings-1.png?resize=496%2C252&#038;ssl=1\" alt=\"\u201cSorry, This File Type Is Not Permitted for Security Reasons\u201d\" class=\"wp-image-20515\" srcset=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/mime-type-settings-1.png?w=496&amp;ssl=1 496w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/mime-type-settings-1.png?resize=300%2C152&amp;ssl=1 300w\" sizes=\"(max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After adding the file type, you will able to upload a prohibited file type. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2-_By_editing_the_wp-configphp_file\"><\/span>2- By editing the wp-config.php file.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If the plugin doesn&#8217;t work, you can <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/wordpress.org\/support\/article\/editing-wp-config-php\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">edit the <strong>wp-config.php<\/strong><\/a> file which allows you to upload all types of files, on your WordPress website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For editing the wp-config.php file, follow these instructions.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access files via File Manager or FTP client.<\/li>\n\n\n\n<li>Now find the wp-config.php file and click on edit.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"833\" height=\"384\" src=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/edit-php-file-1.png?resize=833%2C384&#038;ssl=1\" alt=\"\u201cSorry, This File Type Is Not Permitted for Security Reasons\u201d\" class=\"wp-image-20522\" style=\"width:705px;height:auto\" srcset=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/edit-php-file-1.png?w=833&amp;ssl=1 833w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/edit-php-file-1.png?resize=300%2C138&amp;ssl=1 300w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/edit-php-file-1.png?resize=768%2C354&amp;ssl=1 768w\" sizes=\"(max-width: 833px) 100vw, 833px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now You have to add the following code below in the line above \/* That&#8217;s all, stop editing! Happy publishing. *\/ <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('ALLOW_UNFILTERED_UPLOADS', true);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After editing the file successfully, don&#8217;t forget to click on the save changes. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After editing the wp-config.php file you can upload any type of prohibited files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3-_Edit_Your_Themes_functionsphp_File\"><\/span><strong>3- Edit Your Theme\u2019s functions.php File.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Another option is to edit the theme\u2019s functions.php File. Let&#8217;s know this method, after that, you will be able to upload your desired files. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Edit your Theme\u2019s functions.php File by the following method.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access files via File Manager or FTP client.<\/li>\n\n\n\n<li>Now find the <strong>functions.php File<\/strong> and click on edit.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"407\" src=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/edit-theme-function-file-1.png?resize=852%2C407&#038;ssl=1\" alt=\"\" class=\"wp-image-20537\" style=\"width:544px;height:260px\" srcset=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/edit-theme-function-file-1.png?w=852&amp;ssl=1 852w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/edit-theme-function-file-1.png?resize=300%2C143&amp;ssl=1 300w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/edit-theme-function-file-1.png?resize=768%2C367&amp;ssl=1 768w\" sizes=\"(max-width: 852px) 100vw, 852px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After opening Theme\u2019s functions.php file, now add the following code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function my_custom_mime_types( $mimes ) {\n\t\n        \/\/ New allowed mime types.\n        $mimes&#091;'svg'] = 'image\/svg+xml';\n\t$mimes&#091;'svgz'] = 'image\/svg+xml';\n        $mimes&#091;'doc'] = 'application\/msword'; \n\n        \/\/ Optional. Remove a mime type.\n        unset( $mimes&#091;'exe'] );\n\n\treturn $mimes;\n}\nadd_filter( 'upload_mimes', 'my_custom_mime_types' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now add your MIME types and their corresponding extensions to the array, under <strong>\/\/ New allowed mime types<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also add MIME types you wish to prohibit to the <strong>optional Remove a mime type <\/strong>section<strong>.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This method will help you to upload your prohibited files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4-_Add_allowed_file_types_by_changing_the_Multisite_WordPress_settings\"><\/span><strong>4- Add allowed file types by changing the Multisite WordPress settings<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re a big company or you manage multiple websites, then you will have a WordPress Multisite. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can Fix the \u201cSorry This File Type Is Not Permitted for Security Reasons\u201d Error in WordPress by using <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/themehunk.com\/fr\/create-your-own-multisite-using-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">Multisite<\/a> settings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unlike WordPress installation with a single site, Multi-Site has a setting that allows you to easily allow file uploads that are not allowed by WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To access your Multisite Settings, go to <strong>Dashboard<\/strong> &gt; <strong>Settings<\/strong> &gt; <strong>click<\/strong> <strong>on<\/strong> <strong>network<\/strong> <strong>settings<\/strong>, as shown in the screenshot below.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"447\" src=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/theme-function-file-2.png?resize=805%2C447&#038;ssl=1\" alt=\"\u201cSorry, This File Type Is Not Permitted for Security Reasons\u201d\" class=\"wp-image-20551\" style=\"width:533px;height:296px\" srcset=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/theme-function-file-2.png?w=805&amp;ssl=1 805w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/theme-function-file-2.png?resize=300%2C167&amp;ssl=1 300w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/theme-function-file-2.png?resize=768%2C426&amp;ssl=1 768w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Under the <strong>Upload Settings<\/strong> heading, you will find a configuration for file upload types where you can add extensions for the types of files you wish to allow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add your file type to the Upload file types section.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"511\" src=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/multi-site-settings-1.png?resize=1024%2C511&#038;ssl=1\" alt=\"\" class=\"wp-image-20552\" srcset=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/multi-site-settings-1.png?resize=1024%2C511&amp;ssl=1 1024w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/multi-site-settings-1.png?resize=300%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/multi-site-settings-1.png?resize=768%2C383&amp;ssl=1 768w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/multi-site-settings-1.png?resize=400%2C200&amp;ssl=1 400w, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/multi-site-settings-1.png?w=1418&amp;ssl=1 1418w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After adding your file types, click on the Save Changes button, and by saving your settings you will able to add permitted file types for all the sites in your multisite network. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5-_Contact_a_developer\"><\/span><strong>5- Contact a developer.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you didn&#8217;t find anything that solves your problems, and If you have tried all way above but the error still hasn&#8217;t disappeared which we have discussed above, you can contact a developer, and they will fix your problem.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, you can also try some more methods given below. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>By updating or deactivating your themes.<\/li>\n\n\n\n<li>By deactivating plugins.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re looking to boost your knowledge and skills in cybersecurity, the <a href=\"https:\/\/www.exam-labs.com\/certification\/CompTIA-Security-plus\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">CompTIA Security+ Certification <\/a>is a valuable credential to consider. It validates your proficiency in identifying and mitigating security risks and protecting systems and networks from both natural and malicious threats.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><strong>Conclusion-<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">So this is the article on how to fix the &#8220;<strong>Sorry this file type is not permitted for security reasons<\/strong>.&#8221; error in WordPress. you can try any of the above methods.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have any questions regarding any issue, do not hesitate, to comment down below, and we will help you to solve your problem. Thanks for reading this blog. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Read More-<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/themehunk.com\/fr\/how-to-remove-date-and-time-from-wordpress-comments-section\/\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">How to Remove Date and Time from WordPress Comments<\/a><\/li>\n\n\n\n<li><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/themehunk.com\/fr\/speed-up-website-load-time\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Boost WordPress Website Speed <\/a><\/li>\n\n\n\n<li><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/themehunk.com\/fr\/wordpress-installation-using-cpanel-and-ftp\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress Installation using cPanel and FTP<\/a><\/li>\n\n\n\n<li><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/themehunk.com\/fr\/limit-number-of-tags-in-wordpress-tag-cloud-widget\/\" target=\"_blank\" rel=\"noreferrer noopener\">Limit the number of tags in the WordPress tag cloud widget.<\/a><\/li>\n\n\n\n<li><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/themehunk.com\/fr\/how-to-install-free-ssl-certificate-on-wordpress-website\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Add HTTPS SSL Certificate To WordPress Website For free<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>Have you got an error like \u201cSorry this file type is not permitted for security reasons\u201d when you were uploading any file to your media library? Well, one of our clients has faced this error while uploading a file into the media library, and maybe many more people have faced this same issue. That&#8217;s why [&hellip;]<\/p>\n","protected":false},"author":9313,"featured_media":20571,"comment_status":"open","ping_status":"closed","sticky":false,"template":"custom-blog-tmpl.php","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":true},"categories":[1,453,555,456,2703,11],"tags":[3448,513,508,458,461,468],"class_list":["post-20431","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wp-beginners","category-wordpress-tips-tricks","category-tools-services","category-wordpress-tutorials","category-wordpress","category-wordpress-themes-plugins","tag-file-uploading-issue","tag-plugin","tag-theme","tag-wordpress","tag-wordpress-plugin","tag-wordpress-theme"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2020\/07\/file-type-permission.png?fit=825%2C470&ssl=1","jetpack-related-posts":[{"id":58027,"url":"https:\/\/themehunk.com\/fr\/stylecss-not-found-error\/","url_meta":{"origin":20431,"position":0},"title":"How To Fix The &#8220;style.css not found&#8221; Error in 2025","author":"Anurag","date":"janvier 29, 2025","format":false,"excerpt":"It irritates everyone when we upload a file to a WordPress website and an error occurs that says The package could not be installed. The theme is missing the style.css stylesheet. This error occurs while uploading a theme or plugin file. It is one of the most faced errors. There\u2026","rel":"","context":"Dans &quot;WP Beginners&quot;","block_context":{"text":"WP Beginners","link":"https:\/\/themehunk.com\/fr\/category\/wp-beginners\/"},"img":{"alt_text":"How To Fix The \"style.css not found\" Error","src":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/02\/TH_Style-Css.jpg?fit=825%2C470&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/02\/TH_Style-Css.jpg?fit=825%2C470&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/02\/TH_Style-Css.jpg?fit=825%2C470&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/02\/TH_Style-Css.jpg?fit=825%2C470&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":71375,"url":"https:\/\/themehunk.com\/fr\/fix-http-400-bad-request-error-in-wordpress\/","url_meta":{"origin":20431,"position":1},"title":"How to Fix HTTP 400 Bad Request Error in a WordPress Website (7 Ways)","author":"Editorial","date":"avril 10, 2026","format":false,"excerpt":"Do you want to know how to Fix HTTP 400 Bad request error? you have come to the right place! The HTTP 400 Bad Request error is a common issue that can disrupt your WordPress website's functionality and user experience. It typically indicates that the server cannot process the request\u2026","rel":"","context":"Dans &quot;WP Beginners&quot;","block_context":{"text":"WP Beginners","link":"https:\/\/themehunk.com\/fr\/category\/wp-beginners\/"},"img":{"alt_text":"Fix HTTP 400 Bad Request Error in WordPress","src":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/08\/wp-http-400-error.png?fit=825%2C470&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/08\/wp-http-400-error.png?fit=825%2C470&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/08\/wp-http-400-error.png?fit=825%2C470&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/08\/wp-http-400-error.png?fit=825%2C470&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":44413,"url":"https:\/\/themehunk.com\/fr\/common-wordpress-errors\/","url_meta":{"origin":20431,"position":2},"title":"9 Most Common WordPress Errors and Guide to Fix Them in","author":"Aman Dubey","date":"janvier 22, 2025","format":false,"excerpt":"Hello there, In today's blog, we're going to discuss some of the Common WordPress errors and their Solutions. Creating a Blog or website is now much easier with WordPress. But also sometimes there are various things that come in line while creating a WordPress website. There are various Common WordPress\u2026","rel":"","context":"Dans &quot;WP Beginners&quot;","block_context":{"text":"WP Beginners","link":"https:\/\/themehunk.com\/fr\/category\/wp-beginners\/"},"img":{"alt_text":"Detail Guide about Common WordPress errors","src":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2022\/12\/common-wordpress-errors-fix.png?fit=825%2C470&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2022\/12\/common-wordpress-errors-fix.png?fit=825%2C470&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2022\/12\/common-wordpress-errors-fix.png?fit=825%2C470&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2022\/12\/common-wordpress-errors-fix.png?fit=825%2C470&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":26963,"url":"https:\/\/themehunk.com\/fr\/wordpress-memory-exhausted-error-increase-php-memory\/","url_meta":{"origin":20431,"position":3},"title":"WordPress Memory Exhausted Error Fixed! Here is How.","author":"Aman Dubey","date":"janvier 21, 2025","format":false,"excerpt":"Do you want to Fix the WordPress Memory Exhausted Error? or Want to know, How you can increase the memory limit on WordPress Website? Don't worry, in today's blog I will tell you everything about increasing the memory limit in your WordPress website. Sometimes while working on a WordPress website,\u2026","rel":"","context":"Dans &quot;WP Beginners&quot;","block_context":{"text":"WP Beginners","link":"https:\/\/themehunk.com\/fr\/category\/wp-beginners\/"},"img":{"alt_text":"WordPress Memory Exhausted Error","src":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2021\/03\/fix-wordpress-memory-exhausted-error.png?fit=825%2C470&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2021\/03\/fix-wordpress-memory-exhausted-error.png?fit=825%2C470&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2021\/03\/fix-wordpress-memory-exhausted-error.png?fit=825%2C470&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2021\/03\/fix-wordpress-memory-exhausted-error.png?fit=825%2C470&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":71947,"url":"https:\/\/themehunk.com\/fr\/fix-wordpress-login-error-at-wp-admin\/","url_meta":{"origin":20431,"position":4},"title":"How to Fix WordPress Login Error at wp-admin: Step-by-Step Guide","author":"Editorial","date":"avril 9, 2026","format":false,"excerpt":"Are you frustrated with encountering the WordPress login error at your wp-admin? Whether it\u2019s an \u201cIncorrect password,\u201d \u201cThis site is experiencing technical difficulties,\u201d or simply being unable to access the dashboard, login issues can be a major headache for site administrators. But don\u2019t worry! In this blog post, we\u2019ll explore\u2026","rel":"","context":"Dans &quot;WP Beginners&quot;","block_context":{"text":"WP Beginners","link":"https:\/\/themehunk.com\/fr\/category\/wp-beginners\/"},"img":{"alt_text":"Fix WordPress Login Error at wp-admin","src":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/08\/wp-admin-login-error-32.png?fit=825%2C470&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/08\/wp-admin-login-error-32.png?fit=825%2C470&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/08\/wp-admin-login-error-32.png?fit=825%2C470&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2024\/08\/wp-admin-login-error-32.png?fit=825%2C470&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":52310,"url":"https:\/\/themehunk.com\/fr\/response-is-not-a-valid-json-response\/","url_meta":{"origin":20431,"position":5},"title":"How to Fix &#8220;Updating Failed. The Response is Not a Valid JSON Response&#8221; in WordPress","author":"Gaurav Payak","date":"mars 4, 2026","format":false,"excerpt":"Overview\u27a3 This article explains the common WordPress error \u201cResponse is not a valid JSON response,\u201d its causes, and practical solutions like fixing permalinks, checking plugins, and resolving server or REST API issues. Are you a WordPress user who comes across the annoying \"Updating Failed. The Response is Not a Valid\u2026","rel":"","context":"Dans &quot;Tips &amp; Tricks&quot;","block_context":{"text":"Tips &amp; Tricks","link":"https:\/\/themehunk.com\/fr\/category\/wordpress-tips-tricks\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2023\/11\/not-valid-jason-response-12.png?fit=825%2C470&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2023\/11\/not-valid-jason-response-12.png?fit=825%2C470&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2023\/11\/not-valid-jason-response-12.png?fit=825%2C470&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2023\/11\/not-valid-jason-response-12.png?fit=825%2C470&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"comment_count":"0","_links":{"self":[{"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/posts\/20431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/users\/9313"}],"replies":[{"embeddable":true,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/comments?post=20431"}],"version-history":[{"count":4,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/posts\/20431\/revisions"}],"predecessor-version":[{"id":66422,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/posts\/20431\/revisions\/66422"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/media\/20571"}],"wp:attachment":[{"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/media?parent=20431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/categories?post=20431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/tags?post=20431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}