Sorry, This File Type Is Not Permitted: Fix
WordPress says sorry, this file type is not permitted? Check your file with our free tool, then allow it safely or convert it, without opening every door.

Last updated December 2, 2026
You upload a file to WordPress and get an error. It says “Sorry, this file type is not permitted for security reasons.”
Images upload fine, but this one file will not.
WordPress only accepts file types on a built-in safe list. Anything else is blocked, even for administrators.
This guide checks your file against that list, then shows the safest way to get it uploaded.
Key Takeaways
- WordPress allows common images, documents, audio, video and archives by default.
- SVG, JSON and font files are not on the default list.
- Renaming the extension does not work. WordPress checks the file contents too.
- Allowing one extra type with the upload_mimes filter is safer than allowing everything.
- WordPress docs say unfiltered uploads are given to no role by default, even Super Admins.
Check Your File Type
Type the file name below. The checker uses the same default list WordPress uses.
WordPress file type checker
Type the name of the file you are trying to upload. The checker compares it with WordPress’s default list.
Your result appears here.
Digieh tool. Runs in your browser only. Based on the WordPress source list, read December 2, 2026. Plugins can change the list.
Find Your Fix
Now tell the finder what the file is and who uploads it.
File type fix finder
Answer two questions. The finder ranks the fixes from safest to riskiest. It runs in your browser only.
Digieh tool. Based on WordPress developer docs, read December 2, 2026.
Which File Types Does WordPress Allow?
| Type | Allowed by default | Examples |
|---|---|---|
| Images | Yes | jpg, png, gif, webp, avif, heic, ico |
| Documents | Yes | pdf, docx, xlsx, pptx, csv, txt |
| Audio and video | Yes | mp3, wav, mp4, mov, webm |
| Archives | Yes | zip, gz, rar, 7z |
| Vector and data | No | svg, json, epub |
| Fonts | No | ttf, woff, woff2 |
| Programs | Never | exe, swf |
Source: WordPress developer reference, wp_get_mime_types and get_allowed_mime_types, read December 2, 2026.
Why Does Renaming the File Not Work?
WordPress looks at the extension and also checks what the file really contains. A data file renamed to .jpg still is not an image.
If a normal image or PDF fails, the file itself may be damaged or saved in an odd format. Open it and export it again.
This check protects you from files that pretend to be images but hide something else. It is a feature, not a bug.
Free updates
Join the Digieh list
Be the first to know when our weekly brief launches.
No spam. Unsubscribe anytime. Read our Privacy Policy.
How Do You Allow One Extra File Type Safely?
WordPress builds its allowed list through the upload_mimes filter. You can add a single type with a small snippet.
add_filter( 'upload_mimes', function ( $types ) {
$types['json'] = 'application/json';
return $types;
} );- Install a code snippets plugin, or use a child theme’s functions.php.
- Paste the snippet and change json and its type to the one you need.
- Save and try the upload again.
Add only the types you need. Each extra type is one more door for unwanted files.
You can also limit the new type to administrators. Check the user inside the filter before adding the type.
After adding a type, test with a real file. If it still fails, the type name may be wrong, or a plugin may block it.
Which file type was blocked for you?
- SVG
- A font file
- JSON or another data file
- A normal image or PDF
- Not sure
Should You Use ALLOW_UNFILTERED_UPLOADS?
Many guides suggest adding ALLOW_UNFILTERED_UPLOADS to wp-config.php. It does work, but it is the riskiest fix.
WordPress’s roles documentation says the unfiltered upload ability is given to no role by default, including Super Admins. With this setting, every role on a single site can be given it.
Editor’s Note
This guide is accurate as of Digieh check. On Multisite, WordPress says only Super Admins can get unfiltered uploads. On a normal single site, a mistake in role settings could let other users upload anything.
Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.
If you use it at all, turn it on, upload the file and remove it again. Then the door stays open only for minutes.
Never leave it on for a site where other people can log in. Writers, shop managers or students could misuse it.
How Do You Upload SVG Logos Safely?
SVG files are text that can contain scripts. That is why WordPress leaves them off the list.
- Convert the logo to PNG or WebP if you do not need sharp scaling.
- Use a well-known SVG plugin that cleans each file before saving it.
- Allow SVG uploads only for administrators, not authors or form visitors.
- Only upload SVG files from sources you trust.
Need a PNG version fast? Many design apps export SVG to PNG in one click.
Export the PNG at twice the size you show it. It will still look sharp on high resolution screens.
Then compress it with our free image compressor so the page stays fast.
How Do You Find a File’s Real Type?
Your computer may hide file extensions. That makes it easy to upload the wrong file without noticing.
- On Windows, open File Explorer, choose View, then Show and tick File name extensions.
- On a Mac, open Finder settings, choose Advanced and tick Show all filename extensions.
- Look at the real ending of the file, such as .svg or .webp.
A file named photo.png.webp is a WebP image, not a PNG. The last extension is the one that counts.
Can a Security Plugin Cause This Error?
Yes. Some security and firewall plugins add their own upload rules on top of WordPress.
- Check the plugin’s upload or file settings for blocked extensions.
- Temporarily disable the plugin and try the upload again.
- If the upload works, adjust the plugin rule instead of leaving it off.
Your host may also scan uploads. If a file is flagged as unsafe, ask support before forcing it through.
What About Fonts and Theme Files?
Fonts are not media. Modern WordPress themes and the Site Editor can add fonts without the media library.
For theme or plugin zips, use Appearance, Themes or Plugins, Add New. If the zip is too big, see our WordPress upload max filesize guide.
Developers can also place font files in the theme folder through the host’s file manager.
Why Do Form Uploads Show This Error?
Contact and job forms often limit file types on their own. The form plugin may block a type WordPress allows.
- Check the form field settings for allowed extensions.
- Keep form uploads to safe types like pdf, docx and jpg.
- Never allow scripts or programs through public forms.
Other WordPress errors? Our WordPress critical error guide and memory exhausted guide cover common upload crashes.
Test Yourself
Is SVG on WordPress’s default upload list?
- No
- Yes
- Only on Tuesdays
SVG is not in the default list from wp_get_mime_types, because SVG files can contain code.
Which fix is safest for one blocked type, such as JSON?
- Add just that type with the upload_mimes filter
- Allow unfiltered uploads for everyone
- Rename the file to .jpg
Adding one type keeps every other type blocked. Renaming fails because WordPress checks contents.
Frequently Asked Questions
Why does WordPress block my file?
It is not on the built-in list of safe types, or its contents do not match its extension.
Can I upload SVG to WordPress?
Not by default. Use a trusted SVG plugin that cleans files, or convert to PNG.
Is it safe to allow all file types?
No. Allow only the types you need, and only for trusted users.
Why does a normal PDF show this error?
The file may be damaged or saved oddly. Export it again and retry.
Do plugins change the allowed list?
Yes. Some plugins add or remove types, so your site may differ from the default.
Conclusion
Check your file against WordPress’s default list. If it is a normal type, re-save the file. If it is SVG, JSON or a font, convert it or allow just that one type with the upload_mimes filter. Use the unfiltered upload setting only briefly, if at all.
Editor’s Note
This guide is accurate as of December 2, 2026. We checked WordPress developer reference pages and WordPress.org role documentation on that date.
Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.
Keep exploring
Your next read is waiting
1AI & TechWindows Update Error 0x800f0922: Causes and Safe Fixes7 min read
2Visas & PassportsDS-160 Photo Size: The Rule Most Guides Miss7 min read
3AI & TechWindows 11 Microphone Not Working: Test and Fix7 min read
4AI & TechWindows 11 Camera Not Working: Error Code Fixes7 min read
5AI & TechLaptop Black Screen but Power Is On: Fixes8 min read
6AI & TechSoft 404 Errors in Search Console: Real Fixes7 min readFound this useful?












