"Sorry, You Are Not Allowed to Upload This File Type" in WordPress

WordPress rejects a file with "Sorry, you are not allowed to upload this file type" or "Sorry, this file type is not permitted for security reasons" — it does not recognise the file as one of its allowed types.

Common signs of this issue

Safe checks you can do yourself

None of these require sharing passwords with anyone.

What this usually means

WordPress keeps a list of file types it will accept, and it checks both the file name's extension and what the file actually contains. Anything not on the list is rejected with this message. That is deliberate: a website that accepts any file will eventually accept a disguised script, and one malicious upload can hand an attacker the whole site. The error is WordPress doing its job, not a malfunction.

The files most often caught are SVG images, which can contain code as well as shapes, so WordPress does not allow them by default; font files like WOFF2 and TTF, which normally belong in a theme or font manager rather than the media library; modern image formats such as WebP or AVIF on an out-of-date WordPress; and files whose name does not match their contents, such as a renamed image or a file saved by an app that adds the wrong extension. A plugin or careful WordPress update fixes most of these cleanly.

The dangerous fix is the one many forum posts suggest: turning off the check entirely with a line in wp-config.php, or a plugin that lets every user upload any type. That removes the safety net for the whole site, for every account, forever — including any account whose password is later stolen. The right approach is to allow only the specific type you need, only for the people who need it, and, for SVG, only with sanitisation. If the file is simply too large rather than the wrong type, see upload_max_filesize exceeded; if the media library itself will not load, see media library not loading.

What not to do

When to get help

If a normal file type like a JPG or PDF is being rejected, if the error started after an update or a new security plugin, or if you need a specific type allowed and are not sure how to do it without weakening the site, it is worth having someone look. The fix is usually small — a sanitising plugin configured properly, a correct file type rule in a small custom plugin, or a WordPress update — but the wrong fix quietly opens a security hole that nobody notices until the site is compromised. An expert also checks whether the rejection is hiding a different problem, such as a damaged file or a misbehaving plugin.

Glenn, who runs WebsiteSelfHelp, fixes WordPress upload problems for small businesses in a way that keeps the site safe. Tell him which file you are trying to upload and what the message says, and he will give you a plain answer on the safest way to get it working. Nothing needs to be handed over to begin.

Not sure what to do next?

Answer a few short questions and we'll point you to the safest next step — DIY, a freelancer, or a direct review. No passwords required.

Is this a business website? If this issue may be costing you leads, sales, or trust, you may want a direct review instead of trial and error.

Frequently asked questions

What does "Sorry, you are not allowed to upload this file type" mean?

WordPress does not have the file's type on its list of allowed uploads, or the file's contents do not match its name. It is a security check, not a fault with your site.

Why can't I upload SVG files to WordPress?

SVG files can contain code as well as images, so WordPress blocks them by default. You can allow them with a reputable plugin that sanitises SVG files on upload, ideally limited to administrators, or use a PNG version instead.

Does WordPress support WebP and AVIF images?

Yes, in current versions. WebP has been supported since WordPress 5.8 and AVIF since 6.5, as long as your server's image library supports them. On older WordPress versions, those files are rejected.

Is it safe to allow all file types in WordPress?

No. Turning off the check removes an important protection against malicious uploads. Allow only the specific types you need, for the users who need them.

Why can an administrator upload a file but an editor cannot?

WordPress and some security plugins give different roles different upload rights. Administrators on single sites have broader permissions than editors and authors, which is intentional.

How do I upload font files to WordPress?

Use your theme's or page builder's font upload option, or the Font Library in the Site Editor if you use a block theme. Those tools are built for fonts and avoid opening up the general media library.

Can I fix the file type not permitted error myself?

Often. Exporting the file in a normal format, updating WordPress, or installing a reputable plugin for one specific type fixes most cases. Get help if a normal file type is rejected or you are unsure the fix is safe.

Related free guides

WordPress site down?

Seeing “There has been a critical error on this website”?

Our guided repair tool logs in over secure FTPS and fixes the most common WordPress failures — safely, with every change backed up and reversible. Start with a free scan, no password needed.

Fix My WordPress Site → Free scan · No download of your site · Reversible