{"id":5207,"date":"2019-11-14T03:18:06","date_gmt":"2019-11-14T03:18:06","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=5207"},"modified":"2025-12-22T15:10:36","modified_gmt":"2025-12-22T15:10:36","slug":"fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","status":"publish","type":"post","link":"\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","title":{"rendered":"How to fix the \u201csorry, this file type is not permitted for security reasons\u201d WordPress Error in 2024"},"content":{"rendered":"<p>When uploading a file to the WordPress media library, users might encounter the &ldquo;<strong>Sorry, this file type is not permitted for security reasons<\/strong>&rdquo; error. This invalid message appears when your media file is not compatible with WordPress.<\/p><p>Fortunately, there are ways to upload unsupported file types, either by modifying the WordPress settings or using a plugin.<\/p><p>This article will show you six different methods to fix the &ldquo;Sorry, this file type is not permitted for security reasons&rdquo; error while still keeping your WordPress site secure.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all-in-one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-why-does-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error-occur\">Why Does the &ldquo;Sorry, This File Type Is Not Permitted for Security Reasons&rdquo; Error Occur?<\/h2><p>By default, WordPress supports images, documents, audio, and video in the following <a href=\"https:\/\/codex.wordpress.org\/Uploading_Files\" target=\"_blank\" rel=\"noopener\">file types<\/a>:<\/p><ul class=\"wp-block-list\">\n<li>Images: <strong>.jpeg<\/strong>, <strong>.jpg<\/strong>, <strong>.png<\/strong>, <strong>.gif<\/strong>, <strong>.ico<\/strong><\/li>\n\n\n\n<li>Documents: <strong>.pdf<\/strong>, <strong>.doc<\/strong>, <strong>.docx<\/strong>, <strong>.ppt<\/strong>, <strong>.pptx<\/strong>, <strong>.pps<\/strong>, <strong>.ppsx<\/strong>, <strong>.odt<\/strong>, <strong>.xls<\/strong>, <strong>.xlsx<\/strong>, <strong>.psd<\/strong><\/li>\n\n\n\n<li>Audio: <strong>.mp3<\/strong>, <strong>.m4a<\/strong>, <strong>.ogg<\/strong>, <strong>.wav<\/strong><\/li>\n\n\n\n<li>Video: <strong>.mp4<\/strong>, <strong>.m4v<\/strong>, <strong>.mov<\/strong>, <strong>.wmv<\/strong>, <strong>.avi<\/strong>, <strong>.mpg<\/strong>, <strong>.ogv<\/strong>, <strong>.3gp<\/strong>, <strong>.3g2<\/strong><\/li>\n<\/ul><p>Uploading media outside these default file types will trigger the &ldquo;Sorry, this file type is not permitted for security reasons&rdquo; error.<\/p><p>For instance, WordPress does not support formats like <strong>.svg<\/strong> or <strong>.tiff<\/strong> for images and <strong>.woff<\/strong> for custom fonts.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-showing-the-Sorry-you-are-not-allowed-to-upload-this-file-type-error-message.png\"><img decoding=\"async\" width=\"1584\" height=\"734\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-showing-the-Sorry-you-are-not-allowed-to-upload-this-file-type-error-message.png\/public\" alt='The WordPress multi-file uploader showing the \"Sorry, you are not allowed to upload this file type\" error message' class=\"wp-image-76110\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-showing-the-Sorry-you-are-not-allowed-to-upload-this-file-type-error-message.png\/w=1584,fit=scale-down 1584w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-showing-the-Sorry-you-are-not-allowed-to-upload-this-file-type-error-message.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-showing-the-Sorry-you-are-not-allowed-to-upload-this-file-type-error-message.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-showing-the-Sorry-you-are-not-allowed-to-upload-this-file-type-error-message.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-showing-the-Sorry-you-are-not-allowed-to-upload-this-file-type-error-message.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1584px) 100vw, 1584px\" \/><\/a><\/figure><\/div><p>This limitation prevents users from accidentally uploading malicious files to their WordPress site, minimizing the risks of cyber attacks and security breaches.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p> Depending on your WordPress version, you may see the error message &ldquo;Sorry, you are not allowed to upload this file type&rdquo; instead of &ldquo;Sorry, this file type is not permitted for security reasons.&rdquo;<\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-fix-the-sorry-this-file-type-is-not-permitted-for-security-reasons-error\">How to Fix the &ldquo;Sorry, This File Type Is Not Permitted for Security Reasons&rdquo; Error<\/h2><p>Although WordPress&rsquo; file restrictions policy is there to protect users&rsquo; websites, it limits their file-sharing options.<\/p><p>To fix the &ldquo;Sorry, this file type is not permitted for security reasons&rdquo; error in WordPress, try these six different methods.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-double-check-the-file-type-extension-spelling\">1. Double-Check the File Type Extension Spelling<\/h3><p>In some cases, users can still get the &ldquo;Sorry, this file type is not permitted for security reasons&rdquo; error message even when uploading permitted file types.<\/p><p>This might happen if the file name extension is misspelled or has been accidentally changed, making the file unrecognizable to WordPress.<\/p><p>Therefore, before trying other methods, make sure your file extensions are correct. Here&rsquo;s how to do it on Windows:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>File Explorer<\/strong> and locate the target file.<\/li>\n\n\n\n<li>On the top navigation menu, select the <strong>View <\/strong>tab.<\/li>\n\n\n\n<li>Check the box for <strong>File name extensions<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-File-Explorer-interface-on-Windows-with-File-name-extensions-highlighted-in-red.png\"><img decoding=\"async\" width=\"1143\" height=\"409\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-File-Explorer-interface-on-Windows-with-File-name-extensions-highlighted-in-red.png\/public\" alt='The File Explorer interface on Windows with \"File name extensions\" highlighted in red' class=\"wp-image-76111\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-File-Explorer-interface-on-Windows-with-File-name-extensions-highlighted-in-red.png\/w=1143,fit=scale-down 1143w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-File-Explorer-interface-on-Windows-with-File-name-extensions-highlighted-in-red.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-File-Explorer-interface-on-Windows-with-File-name-extensions-highlighted-in-red.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-File-Explorer-interface-on-Windows-with-File-name-extensions-highlighted-in-red.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-File-Explorer-interface-on-Windows-with-File-name-extensions-highlighted-in-red.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/a><\/figure><\/div><p>If you notice an incorrect file extension, right-click on the file and <strong>Rename <\/strong>it to the correct one.<\/p><p>The process is similar for Mac users &ndash; head to <strong>Finder &rarr; Preferences &rarr; Advanced<\/strong> and enable <strong>Show all filename extensions<\/strong>.<\/p><p>Re-uploading a permitted file type with the correct extension should solve the &ldquo;Sorry, this file type is not permitted for security reasons&rdquo; error. If the problem persists, move on to other troubleshooting methods.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-change-the-wordpress-multisite-settings\">2. Change the WordPress Multisite Settings<\/h3><p>WordPress Multisite enables users to create and manage multiple websites through a single dashboard. Not only that, but it also has a feature for adding permitted file types:<\/p><ol class=\"wp-block-list\">\n<li>Open the WordPress dashboard.<\/li>\n\n\n\n<li>On the top navigation bar, head to <strong>My Sites<\/strong> &rarr; <strong>Network Admin<\/strong> &rarr; <strong>Settings <\/strong>&rarr; <strong>Network Settings<\/strong>.<\/li>\n\n\n\n<li>Scroll down to<strong> Upload Settings<\/strong>.<\/li>\n\n\n\n<li>Enter your desired extensions in the field next to <strong>Upload file types<\/strong>.<\/li>\n\n\n\n<li>Save the changes.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Upload-Settings-section-on-the-WordPress-Multisite-dashboard.png\"><img decoding=\"async\" width=\"1584\" height=\"401\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Upload-Settings-section-on-the-WordPress-Multisite-dashboard.png\/public\" alt=\"The Upload Settings section on the WordPress Multisite dashboard\" class=\"wp-image-76112\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Upload-Settings-section-on-the-WordPress-Multisite-dashboard.png\/w=1584,fit=scale-down 1584w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Upload-Settings-section-on-the-WordPress-Multisite-dashboard.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Upload-Settings-section-on-the-WordPress-Multisite-dashboard.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Upload-Settings-section-on-the-WordPress-Multisite-dashboard.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Upload-Settings-section-on-the-WordPress-Multisite-dashboard.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1584px) 100vw, 1584px\" \/><\/a><\/figure><\/div><p>Note that this method only works if you&rsquo;ve <a href=\"\/tutorials\/activate-wordpress-multisite\">activated WordPress Multisite<\/a>. Moreover, it still only allows you to add certain file types, such as <strong>.tiff<\/strong> and <strong>.midi<\/strong>.<\/p><p>To enable unfiltered uploads, you&rsquo;ll need to edit the<strong> wp-config.php<\/strong> file.<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-3-edit-the-wp-config-php-file\">3. Edit the wp-config.php File<\/h3><p>Editing the <strong>wp-config.php<\/strong> file allows users to upload unlimited file types to the media library, including unsupported ones.<\/p><p>However, as you&rsquo;ll be editing a system file, make sure to <a href=\"\/tutorials\/backups\/downloading-website-backup\">create a website backup<\/a> before proceeding in case you encounter any issues.<\/p><p>Start by accessing the WordPress installation directory via an FTP client or File Manager. If you use Hostinger web hosting, follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>hPanel <\/strong>&rarr; <strong>Files <\/strong>&rarr; <strong>File Manager<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-files-filemanager.png\"><img decoding=\"async\" width=\"1141\" height=\"195\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-files-filemanager.png\/public\" alt=\"hPanel File Manager settings\" class=\"wp-image-79420\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-files-filemanager.png\/w=1141,fit=scale-down 1141w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-files-filemanager.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-files-filemanager.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-files-filemanager.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-files-filemanager.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1141px) 100vw, 1141px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>Open the <strong>public_html <\/strong>folder and access the <strong>wp-config.php <\/strong>file.<\/li>\n<\/ol><figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\"><img decoding=\"async\" width=\"1024\" height=\"646\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/public\" alt=\"The wp-config.php file on file manager\" class=\"wp-image-79511\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-wp-config.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Paste the following code snippet above the line <strong>That&rsquo;s all, stop editing! Happy publishing<\/strong>:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">define('ALLOW_UNFILTERED_UPLOADS', true);<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Save the changes.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/The-wp-config-php-file-with-define-ALLOW-UNFILTERED-UPLOADS.png\"><img decoding=\"async\" width=\"699\" height=\"182\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/The-wp-config-php-file-with-define-ALLOW-UNFILTERED-UPLOADS.png\/public\" alt=\"The wp-config.php file with &quot;define('ALLOW_UNFILTERED_UPLOADS', true)&quot; highlighted in red\" class=\"wp-image-78472\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/The-wp-config-php-file-with-define-ALLOW-UNFILTERED-UPLOADS.png\/w=699,fit=scale-down 699w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/The-wp-config-php-file-with-define-ALLOW-UNFILTERED-UPLOADS.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/The-wp-config-php-file-with-define-ALLOW-UNFILTERED-UPLOADS.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/a><\/figure><\/div><p>Keep in mind that this method can pose security risks. For that reason, we recommend reverting any changes made once you have uploaded the prohibited file type to your WordPress site.<\/p><h3 class=\"wp-block-heading\" id=\"h-4-edit-the-theme-s-functions-php-file\">4. Edit the Theme&rsquo;s functions.php File<\/h3><p>If the previous method sounds too risky for your preference, adding the <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/upload_mimes\/\" target=\"_blank\" rel=\"noreferrer noopener\">upload mimes<\/a> filter to your theme&rsquo;s <strong>functions.php<\/strong> file might be a better alternative.<\/p><p>This method enables users to upload certain file types individually instead of simultaneously. Here&rsquo;s how to do it via <a href=\"https:\/\/www.hostinger.com\/support\/1583483-comprehensive-guide-to-hpanel-at-hostinger\/\">hPanel<\/a>:<\/p><ol class=\"wp-block-list\">\n<li>Head to <strong>Files <\/strong>&rarr;<strong> File Manager<\/strong>.<\/li>\n\n\n\n<li>Navigate to <strong>public_html <\/strong>&rarr;<strong> wp-content<\/strong> &rarr;<strong> themes<\/strong>, access your current theme&rsquo;s folder, and then open the <strong>functions.php <\/strong>file.<\/li>\n<\/ol><div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-publichtml-wpcontent-themes-functionsphp.png\"><img decoding=\"async\" width=\"498\" height=\"414\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-publichtml-wpcontent-themes-functionsphp.png\/public\" alt=\"A theme's functions.php file inside the theme's folder in public_html\" class=\"wp-image-79576\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-publichtml-wpcontent-themes-functionsphp.png\/w=498,fit=scale-down 498w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-publichtml-wpcontent-themes-functionsphp.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-publichtml-wpcontent-themes-functionsphp.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Paste the following syntax to the file. Under the line <strong>\/\/ Add new MIME types here<\/strong>, replace <strong>[&lsquo;gpx&rsquo;] = &lsquo;text\/gpsxml&rsquo;<\/strong> with your preferred Multipurpose Internet Mail Extensions or <a href=\"https:\/\/www.iana.org\/assignments\/media-types\/media-types.xhtml\" target=\"_blank\" rel=\"noreferrer noopener\">MIME types<\/a>:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">function my_custom_mime_types( $mimes ) {\n\/\/ Add new MIME types here\n$mimes[&lsquo;gpx&rsquo;] = &lsquo;text\/gpsxml&rsquo;;\nreturn $mimes;\n}\nadd_filter( &lsquo;upload_mimes&rsquo;, &lsquo;my_custom_mime_types&rsquo; );<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Save the changes.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-functions.php-file-showing-the-upload-mimes-filter.png\"><img decoding=\"async\" width=\"528\" height=\"180\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-functions.php-file-showing-the-upload-mimes-filter.png\/public\" alt=\"The functions.php file showing the upload mimes filter\" class=\"wp-image-76114\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-functions.php-file-showing-the-upload-mimes-filter.png\/w=528,fit=scale-down 528w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-functions.php-file-showing-the-upload-mimes-filter.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-functions.php-file-showing-the-upload-mimes-filter.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 528px) 100vw, 528px\" \/><\/a><\/figure><\/div><p>Note that different operating systems might use varying versions of a similar file type, making their MIME values equally different.<\/p><p>For example, <strong>.gpx <\/strong>files on Windows show as <strong>.gpsxml <\/strong>on macOS. So, instead of <strong>$mimes[&lsquo;gpx&rsquo;] = &lsquo;text\/gpsxml&rsquo;;<\/strong>,<strong> <\/strong>add <strong>$mimes[&lsquo;gpx&rsquo;] = &lsquo;application\/gpsxml&rsquo;; <\/strong>on macOS.<\/p><h3 class=\"wp-block-heading\" id=\"h-5-add-permitted-file-types-using-a-wordpress-plugin\">5. Add Permitted File Types Using a WordPress Plugin<\/h3><p>WordPress has plenty of plugins for uploading unsupported file types. They let you add many MIME types that are disabled by the media library.<\/p><p>For this tutorial, we will show you how to fix the &ldquo;Sorry, this file type is not permitted for security reasons&rdquo; error using the <a href=\"https:\/\/wordpress.org\/plugins\/wp-add-mime-types\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP Add Mime Types<\/a> free WordPress plugin:<\/p><ol class=\"wp-block-list\">\n<li>From the WordPress admin area, <a href=\"\/tutorials\/wordpress\/how-to-install-wordpress-plugins\">install the plugin<\/a> and activate it.<\/li>\n\n\n\n<li>Navigate to <strong>Settings<\/strong> &rarr; <strong>Mime Type Settings<\/strong>.<\/li>\n\n\n\n<li>In the <strong>Add Values<\/strong> section, enter the MIME type value for your desired file. For example, uploading a <strong>.woff <\/strong>file requires users to enter <strong>woff = application\/x-font-woff<\/strong>. To add multiple MIME file types, separate each value by pressing <strong>Enter<\/strong>.<\/li>\n\n\n\n<li>Click on the <strong>Save <\/strong>button.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Add-Values-section-of-the-WP-Add-Mime-Types-plugin.png\"><img decoding=\"async\" width=\"978\" height=\"620\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Add-Values-section-of-the-WP-Add-Mime-Types-plugin.png\/public\" alt=\"The Add Values section of the WP Add Mime Types plugin\" class=\"wp-image-76115\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Add-Values-section-of-the-WP-Add-Mime-Types-plugin.png\/w=978,fit=scale-down 978w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Add-Values-section-of-the-WP-Add-Mime-Types-plugin.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Add-Values-section-of-the-WP-Add-Mime-Types-plugin.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Add-Values-section-of-the-WP-Add-Mime-Types-plugin.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 978px) 100vw, 978px\" \/><\/a><\/figure><\/div><p>Once that&rsquo;s done, the new MIME types will appear in the permitted list, and you can re-upload the files with no issue.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-successfully-uploads-a-.svg-file.png\"><img decoding=\"async\" width=\"1024\" height=\"426\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-successfully-uploads-a-.svg-file.png\/public\" alt=\"The WordPress multi-file uploader successfully uploads a .svg file\" class=\"wp-image-76116\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-successfully-uploads-a-.svg-file.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-successfully-uploads-a-.svg-file.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-successfully-uploads-a-.svg-file.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WordPress-multi-file-uploader-successfully-uploads-a-.svg-file.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-6-contact-your-hosting-provider\">6. Contact Your Hosting Provider<\/h3><p>In some cases, WordPress isn&rsquo;t the one stopping you from uploading specific files. Several hosting providers enact file type restrictions to ensure security.<\/p><p>Therefore, if none of the above methods work, reach out to your provider&rsquo;s customer support team and ask them to resolve the issue.<\/p><p>Hostinger users can contact our Customer Success team via live chat:<\/p><ol class=\"wp-block-list\">\n<li>Open <strong>hPanel <\/strong>and go to <strong>Help<\/strong>.<\/li>\n\n\n\n<li>Select <strong>Transfer, setup or restore your site<\/strong> &rarr;<strong> Install new application<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Chat now<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Help-section-on-hPanel-with-Chat-now-highlighted-in-red.png\"><img decoding=\"async\" width=\"1079\" height=\"625\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Help-section-on-hPanel-with-Chat-now-highlighted-in-red.png\/public\" alt='The Help section on hPanel with \"Chat now\" highlighted in red' class=\"wp-image-76117\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Help-section-on-hPanel-with-Chat-now-highlighted-in-red.png\/w=1079,fit=scale-down 1079w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Help-section-on-hPanel-with-Chat-now-highlighted-in-red.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Help-section-on-hPanel-with-Chat-now-highlighted-in-red.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Help-section-on-hPanel-with-Chat-now-highlighted-in-red.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Help-section-on-hPanel-with-Chat-now-highlighted-in-red.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1079px) 100vw, 1079px\" \/><\/a><\/figure><\/div><p>Once a live chat window appears, send a message with your request, and our Customer Success agents will reply within a few minutes.<\/p><h2 class=\"wp-block-heading\" id=\"h-additional-mime-wordpress-plugins\">Additional MIME WordPress Plugins<\/h2><p>In addition to <strong>WP Add Mime Types<\/strong>, there are other WordPress plugin alternatives to resolve the &ldquo;Sorry, this file type is not permitted for security reasons&rdquo; error.<\/p><p>However, we recommend only installing one MIME plugin at a time to avoid compatibility errors.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-media-library-assistant\">1.<a href=\"https:\/\/wordpress.org\/plugins\/media-library-assistant\/\" target=\"_blank\" rel=\"noreferrer noopener\"> Media Library Assistant<\/a><\/h3><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Media-Library-Assistant-plugin-page-on-wordpress.org_.png\"><img decoding=\"async\" width=\"1024\" height=\"484\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Media-Library-Assistant-plugin-page-on-wordpress.org_.png\/public\" alt=\"The Media Library Assistant plugin page on wordpress.org\" class=\"wp-image-76118\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Media-Library-Assistant-plugin-page-on-wordpress.org_.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Media-Library-Assistant-plugin-page-on-wordpress.org_.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Media-Library-Assistant-plugin-page-on-wordpress.org_.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-Media-Library-Assistant-plugin-page-on-wordpress.org_.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p><strong>Plugin Stats:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Downloads: <\/strong>70,000+<\/li>\n\n\n\n<li><strong>Rating: <\/strong>4.8\/5<\/li>\n\n\n\n<li><strong>Notable features: <\/strong>MIME types management, attachment metadata custom fields, enhanced search media box<\/li>\n\n\n\n<li><strong>Price: <\/strong>free<\/li>\n<\/ul><p><strong>Media Library Assistant <\/strong>is a customizable plugin that adds many features to the WordPress media library. These include MIME types control, custom fields for attachment metadata, and specific filters for media library searches.<\/p><p>To authorize additional file formats, enable the relevant MIME types via the plugin&rsquo;s settings or add custom ones.<\/p><p>A significant advantage of this plugin is its extensive customization options. Users can alter the interface and functionality of the WordPress media library to their preference, making it an excellent choice for all types of websites.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-mime-types-plus\">2.<a href=\"https:\/\/wordpress.org\/plugins\/enhanced-media-library\/\" target=\"_blank\" rel=\"noopener\"> <\/a><a href=\"https:\/\/wordpress.org\/plugins\/mime-types-plus\/\" target=\"_blank\" rel=\"noreferrer noopener\">Mime Types Plus<\/a><\/h3><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-MIME-Types-Plus-plugin-page-on-wordpress.org_.png\"><img decoding=\"async\" width=\"1227\" height=\"233\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-MIME-Types-Plus-plugin-page-on-wordpress.org_.png\/public\" alt=\"The MIME Types Plus plugin page on wordpress.org\" class=\"wp-image-76119\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-MIME-Types-Plus-plugin-page-on-wordpress.org_.png\/w=1227,fit=scale-down 1227w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-MIME-Types-Plus-plugin-page-on-wordpress.org_.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-MIME-Types-Plus-plugin-page-on-wordpress.org_.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-MIME-Types-Plus-plugin-page-on-wordpress.org_.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-MIME-Types-Plus-plugin-page-on-wordpress.org_.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1227px) 100vw, 1227px\" \/><\/a><\/figure><\/div><p><strong>Plugin Stats:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Downloads: <\/strong>10,000+<\/li>\n\n\n\n<li><strong>Rating: <\/strong>3.75\/5<\/li>\n\n\n\n<li><strong>Notable features: <\/strong>MIME types and user control management<\/li>\n\n\n\n<li><strong>Price: <\/strong>free<\/li>\n<\/ul><p><strong>Mime Types Plus <\/strong>allows you to add and remove MIME types, change extensions, and manage file uploads.<\/p><p>To add MIME types, simply go to <strong>Edit Mime Type<\/strong>, specify the file details, and click <strong>Add<\/strong>. In addition, its <strong>Edit Users<\/strong> section lets you define authorized and restricted file extensions for each user.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-wp-extra-file-types\">3.<a href=\"https:\/\/wordpress.org\/plugins\/file-upload-types\/\" target=\"_blank\" rel=\"noopener\"> <\/a><a href=\"https:\/\/wordpress.org\/plugins\/wp-extra-file-types\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP Extra File Types<\/a><\/h3><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WP-Extra-File-Types-plugin-page-on-wordpress.org_.png\"><img decoding=\"async\" width=\"1238\" height=\"237\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WP-Extra-File-Types-plugin-page-on-wordpress.org_.png\/public\" alt=\"The WP Extra File Types plugin page on wordpress.org\" class=\"wp-image-76120\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WP-Extra-File-Types-plugin-page-on-wordpress.org_.png\/w=1238,fit=scale-down 1238w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WP-Extra-File-Types-plugin-page-on-wordpress.org_.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WP-Extra-File-Types-plugin-page-on-wordpress.org_.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WP-Extra-File-Types-plugin-page-on-wordpress.org_.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/The-WP-Extra-File-Types-plugin-page-on-wordpress.org_.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1238px) 100vw, 1238px\" \/><\/a><\/figure><\/div><p><strong>Plugin Stats:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Downloads: <\/strong>60,000+<\/li>\n\n\n\n<li><strong>Rating: <\/strong>3.5\/5<\/li>\n\n\n\n<li><strong>Notable features: <\/strong>custom file types<\/li>\n\n\n\n<li><strong>Price: <\/strong>free<\/li>\n<\/ul><p><strong>WP Extra File Types <\/strong>makes it easy to enable file extensions outside of WordPress&rsquo; safelist. Even though it lacks additional features, it&rsquo;s sufficient for those simply looking to add extra file formats.<\/p><p>Upon installation and activation, locate your preferred extensions and check the box next to them. If the targeted format isn&rsquo;t available, add your own custom file types in the provided fields.<\/p><h2 class=\"wp-block-heading\" id=\"h-consider-wordpress-security-when-uploading-files\">Consider WordPress Security When Uploading Files<\/h2><p>WordPress restricts several file types for security reasons, as they can leave websites susceptible to cyber attacks.<\/p><p>To prevent file upload vulnerabilities, we recommend implementing these <a href=\"\/tutorials\/how-to-secure-wordpress\">WordPress security best practices<\/a>:<\/p><ul class=\"wp-block-list\">\n<li><strong>Download plugin and theme files from trusted sources<\/strong>. Plugins and themes are responsible for around <a href=\"https:\/\/wpscan.com\/statistics\" target=\"_blank\" rel=\"noreferrer noopener\">97% of WordPress vulnerabilities<\/a>. Therefore, only download them from the WordPress library or other legitimate sources.<\/li>\n<\/ul><ul class=\"wp-block-list\">\n<li><strong>Carefully select file extensions<\/strong>. Some files carry more security threats than others, such as <strong>.rar<\/strong>, <strong>.zip<\/strong>, <strong>.exe<\/strong>, and even <strong>.pdf<\/strong>, so try to avoid them when possible.<\/li>\n<\/ul><ul class=\"wp-block-list\">\n<li><strong>Only allow selected users to upload files<\/strong>. If your site has multiple admins, consider using a plugin like <strong>Mime Types Plus<\/strong> to control authorized file uploads for each user.<\/li>\n<\/ul><ul class=\"wp-block-list\">\n<li><strong>Regularly scan your site for malware<\/strong>. Plugins like <strong>Sucuri Security<\/strong>, <strong>Wordfence<\/strong>, and <strong>BulletProof Security<\/strong> can help you locate and remove malicious files.<\/li>\n<\/ul><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p><\/p><p><a href=\"\/tutorials\/hacked-wordpress\">WordPress Hacked: Effective Steps to Recover Your Site<\/a><br>\n<a href=\"\/tutorials\/debug-wordpress\">Debug WordPress: A Comprehensive Guide for Beginners<\/a><br>\n<a href=\"\/tutorials\/fix-sorry-you-are-not-allowed-to-access-this-page-wordpress\">10 Ways to Fix the &ldquo;Sorry, You Are Not Allowed to Access This Page&rdquo; Error in WordPresss<\/a><br>\n<a href=\"\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress\">How to Fix the upload_max_filesize Error in WordPress<\/a><br>\n<a href=\"\/tutorials\/http-error-when-uploading-images-to-wordpress\">How to Fix WordPress HTTP Error When Uploading Images<\/a> <\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>The &ldquo;Sorry, this file type is not permitted for security reasons&rdquo; error message appears when users try to upload file types unsupported by WordPress.<\/p><p>Although this restriction exists to minimize security risks, there are times when you need to upload images or other media file types outside of WordPress&rsquo; safelist.<\/p><p>Fortunately, there are several ways to fix this error:<\/p><ol class=\"wp-block-list\">\n<li>Double-check the file extension.<\/li>\n\n\n\n<li>Activate the WordPress Multisite feature.<\/li>\n\n\n\n<li>Modify the <strong>wp-config.php<\/strong> file.<\/li>\n\n\n\n<li>Edit your theme&rsquo;s <strong>functions.php<\/strong> file.<\/li>\n\n\n\n<li>Use a WordPress MIME plugin.<\/li>\n\n\n\n<li>Contact your hosting provider.<\/li>\n<\/ol><p>Regardless of the method you choose, do not neglect WordPress security when uploading additional file types.<\/p><p>If you have any questions about the &ldquo;Sorry, this file type is not permitted for security reasons&rdquo; error, feel free to leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When uploading a file to the WordPress media library, users might encounter the &ldquo;Sorry, this file type is not permitted [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":186,"featured_media":6032,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Fix \"Sorry, This File Type Is Not Permitted for Security Reasons\"","rank_math_description":"Fix the \"Sorry, this file type is not permitted for security reasons\" error: 1. Check the file type; 2. Edit the wp-config.php file + more.","rank_math_focus_keyword":"sorry this file type is not permitted for security reasons","footnotes":""},"categories":[22640,22637],"tags":[],"class_list":["post-5207","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security-and-maintenance","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/gagal-upload-file-ke-wordpress-dan-pesan-error-muncul-begini-cara-mengatasinya","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/fix-sorry-this-file-type-is-not-permitted-for-security-reasons-error-in-wordpress","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/5207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/186"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=5207"}],"version-history":[{"count":41,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/5207\/revisions"}],"predecessor-version":[{"id":138350,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/5207\/revisions\/138350"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/6032"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=5207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=5207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=5207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}