Did you encounter the dreaded “Sorry, this file type is not permitted for security reasons.” error on your WordPress website? ?
Don’t worry, it’s a common error that occurs when you are uploading a file type that WordPress does not support. Fortunately, there is a way to bypass this restriction.
?? In this article, we will show you how to upload restricted file types by installing a plugin or making manual modifications on your site.
We’ll also share a fix specifically for WordPress multisite networks, though most of our fixes are focused on regular WordPress installs.
No matter which method you choose, it will only take a couple of minutes to set up, and you’ll be able to fix the “Sorry, this file type is not permitted for security reasons” error for good.
What causes the “Sorry, this file type is not permitted for security reasons.” error?
By default, WordPress only lets you upload a limited selection of file types:
- Document: .pdf, .doc, .docx, .ppt, .pptx, .pps, .ppsx, .odt, .xls, .xlsx, .psd
- Images: .jpg, .jpeg, .png, .gif, .webp, .ico
- Video: .mp4, .m4v, .mov, .wmv, .avi, .mpg, .ogv, .3gp, .3g2
- Audio: .mp3, .m4a, .ogg, .wav
The restriction exists to prevent hackers from exploiting files on your website. ?️
Certain file types like SVG are vulnerable and can be corrupted easily because these file formats were not created with security in mind. So if you upload them to your website, hackers will exploit the files to gain access to your site. That’s why WordPress allows only a handful of file types to be uploaded to a website.
If you try to upload a restricted file type, it shows you the “sorry, this file type is not permitted for security reasons.” error.
That said, occasionally, you may have to upload restricted file types despite the risks involved.
In the next section, we are going to show you how to bypass restrictions and upload any file type you want on your WordPress website. And be sure to check out the final section, where you’ll learn how to keep your WordPress site secure from hackers after enabling the upload of restricted file types. ?
How to upload restricted file types on your WordPress website?
You can upload restricted file types on your WordPress website by adding a code snippet to your core WordPress files or by installing a plugin. If you are running a multisite, then WordPress also gives an option to remove restrictions on file types.
But before we get down to fixing the problem, take a backup of your entire site. With a backup in place, you can carry out modifications on your website without worry. If anything goes wrong, you can quickly restore your site back to normal.
Use a plugin to change WordPress file upload types
Using a plugin is the easiest
[…]
This article was written by Sufia Banu and originally published on ThemeIsle Blog.