Solve “Not Allowed to Upload File” in WordPress

How to Fix “Sorry, You Are Not Allowed to Upload This File Type” in WordPress

Are you getting the error message “Sorry, you are not allowed to upload this file type” while trying to upload media in WordPress? Don’t worry — you can fix this issue in seconds without any plugin. This guide, brought to you by CODARAB DEV, shows you how to solve the problem manually using a simple line of code in your wp-config.php file.

✅ Step-by-Step Fix

  1. Open your File Manager (via cPanel or FTP).
  2. Locate and edit the file: wp-config.php.
  3. Before the line: /* That’s all, stop editing! Happy publishing. */ paste this code: define(‘ALLOW_UNFILTERED_UPLOADS’, true);
  4. Save the file and refresh your WordPress Media Library.

🎉 That’s it! You should now be able to upload any file type, including SVG, ZIP, and more. This fix is especially helpful for developers, designers, and WooCommerce users needing to upload custom assets.

📺 Watch the Video Tutorial

Follow along visually with our step-by-step video guide here:

Fix “Sorry, You Are Not Allowed to Upload This File” – Watch on YouTube

https://youtu.be/4221uSCvDIo

🚀 Need a Fully Developed WordPress Website?

If you’re looking for a complete WordPress or WooCommerce setup with premium plugins, optimized SEO, and secure payment integration, explore our professional service:

👉 CODARAB Professional WordPress & WooCommerce Website Creation

🔗 Useful External Resources

Leave a Comment

Your email address will not be published. Required fields are marked *

COMMANDEZ MAINTENANT