Are you seeing ‘Sorry, this tệp tin type is not permitted for security reasons’ error in WordPress?

You can upload most comtháng tệp tin types in WordPress without any error. However, you may see this error if the file type is not supported by WordPress.

In this article, we will show you how to lớn easily fix ‘Sorry, this file type is not permitted for security reasons’ error in WordPress.


What Causes the “Sorry, This File Type Is Not Permitted for Security Reasons” Error?

The error “Sorry, this tệp tin type is not permitted for security reasons” appears when you try to lớn upload a file type that WordPress does not tư vấn.

Bạn đang xem: Sorry, this file type is not permitted for security reasons

You may have sầu seen this error message appear when trying khổng lồ add a new tệp tin in your Media Library.


For security reasons, WordPress restricts the tệp tin types you can upload through your WordPress admin. The permitted file types include all common images, video, document, và audio formats.

One solution khổng lồ fix this problem is to upload the files through FTP or your WordPress hosting file manager section.

However, it is not as convenient as using the built-in WordPress media library.

So let’s take a look at how to fix the “Sorry, this file type is not permitted for security reasons” error in WordPress.

Chechồng và Fix the File Type Extension Spelling

If you are trying to upload a comtháng file type that you have previously uploaded without seeing this error, then it is likely that you have misspelled the file extension.

A tệp tin extension is the 3 or 4 letter filetype suffix that appears at the end of tệp tin names on your computer. For instance, an image tệp tin may be named holidayphokhổng lồ.png where holidayphoto is the file name & png is the extension.

These extensions are used by many programs & applications including WordPress to recognize file types. Following are the mặc định file types and extensions allowed by WordPress:

Images: .png, .gif, .jpg, .jpeg, .icoDocuments: .pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .pps, .ppsx, .odt, .psdAudio: .wav, .mp3, .m4a, .oggVideo: .mp4, .m4v, .mpg, .mov, .wmv, .avi, .ogv, .3gp, .3g2

Tip: Although you can upload videos to WordPress, we always recommend uploading your videos to lớn a Clip hosting site instead. This helps protect your website’s tốc độ and performance.

When you get this error, the first thing we recommend is checking the file extension to lớn make sure it is correct. Sometimes, you may accidentally delete a file name extension or mistype it while editing or saving a file on your computer.

On Windows 10, you can easily check file extensions. Simply open the thư mục that contains your tệp tin & click on the ‘View’ link at the top of the window. From here, you need to lớn check the ‘File name extensions’ box.


After checking that box, you will now see the extension after tệp tin names.


Note: This will show the extension for all files on your computer, not just the ones in this thư mục.

Xem thêm: Hướng Dẫn Bật Định Vị Cho Điện Thoại Iphone Đơn Giản Nhất 2021

Mac users can view file extensions by opening the Finder tiện ích & going khổng lồ Finer » Preferences from the top thực đơn.


This will bring up the Preferences popup where you need khổng lồ clichồng on the ‘Advanced’ tab and make sure that the box next to ‘Show all filename extensions’ option is checked.

Now that you can view the file name extensions, locate the file you were trying khổng lồ upload & make sure it has the correct extension.

If the extension is incorrect, then you can simply right-click and select the ‘Rename’ option to lớn change the tệp tin name and add the correct extension.

Allow New File Types in WordPress with the File Upload Types Plugin

If you are uploading a tệp tin type that is not supported by WordPress, then you can still upload it by adding it as a supported tệp tin type.

The File Upload Types plugin is the easiest way khổng lồ fix the “Sorry, this tệp tin type is not permitted for security reasons” error. This was co-created by’s founder, Syed BalLúc.

First, you need lớn install & activate the File Upload Types plugin. For more details, see our step by step guide on how lớn install a WordPress plugin.

Upon activation, go to lớn the Settings » File Upload Types page in your WordPress admin area. Then, simply type your tệp tin type inkhổng lồ the tìm kiếm box.


Next, kiểm tra the box next khổng lồ the tệp tin type(s) that you want to lớn enable & click on the ‘Save sầu Settings’ button at the bottom of the screen lớn store your changes.


Now, go ahead và return lớn the truyền thông library. You will be able to add your file(s) without getting an error message.


Keeping Your WordPress Site Secure When Permitting Additional File Types

The reason WordPress blocks many tệp tin types is khổng lồ help keep your WordPress website secure.

When you enable additional file types, we strongly advise that you take some security measures khổng lồ protect your site.

You should:

We hope this article helped you learn how khổng lồ fix the “Sorry, this file type is not permitted for security reasons” error in WordPress. You may also want to lớn see our expert piông chồng of the must-have WordPress plugins for your website, và bookmark our ultimate guide on how to fix most common WordPress errors.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video clip tutorials. You can also find us on Twitter and Facebook.