softmaji-header-wbg-min
softmaji-header-wbg-min
softmaji-blue-header-min
softmaji-blue-header-min
  • Home
  • Services
    • Website Designing
      • Responsive Website Design
      • Static Website Design
      • Website Redesign
      • Landing Page Design
    • Website Development
      • PHP Website Development
      • WordPress Website Development
      • Ecommerce Website Development
      • Custom Website Development
    • Digital Marketing
      • Google Adwords/PPC
      • Facebook Promotion
    • SEO Service
  • Trainings
    • Learn Web Development
    • Learn Graphics Design
    • Learn Business Communication Skills
  • Pricing
  • Portfolio
  • Events
  • Offers
  • Contact Us

How to Fix Error in WordPress, “Sorry You are Not Allowed to Upload this File Type”

HomeHow to Fix Error in WordPress, “Sorry You are Not Allowed to Upload this File Type”

Offer Expire Soon..


Only New User..


When you’re trying to upload file to your WordPress Media library, there are chances you might get the error, “Sorry, you are not allowed to upload this file type.” You usually get this message, when you upload the file with a different extension than what is allowed in WordPress.

In WordPress, the file types allowed are:

  • Images Extension Supported: .jpeg, .jpg, .png, .gif, .ico
  • Documents Extension Supported: .pdf, .psd, .xlsx, .odt, .ppsx, .pps, .pptx, .docx, .doc
  • Audio Extension Supported: .mp3, .wav, .ogg
  • Video Extension Supported: .mp4, .wmv, .ogv, .3g2, .avi, m4v, 3gp

If you enter extensions besides this, then you will get an error message saying, “ “Sorry, you are not allowed to upload this file type.”

For allowing the upload, go to Site Tools > Site > File Manager and thenedit the wp-config.php file for your WordPress site.This is found in the public html folder.

Now, above the line, “That’s all, stop editing! Happy publishing,’ insert the command given below:

define('ALLOW_UNFILTERED_UPLOADS', true);

Save all the changes to your file and you need to be able to upload the desired file from your WordPress wp-admin > Media> Add New.

Conclusion

Now, for security purpose, it is suggested to remove that new line you added in the wp-config,php after uploading the given files. If later you need to upload more, you can add the line again.

Faizan Khan
20
Latest News
Prev PostKnow How to Display an RSS Feed in WordPress?May 11, 2024
Next PostHow to Reset Your WordPress Account Password from Softaculous in cPanel?May 11, 2024

Related items

2
Latest News

iOS 18.5 vs. iOS 19: Full Comparison of Every Feature

Apple is always updating the software that runs on our iPhones. In 2025, we have two impor

SoftMaji InfoTech
10/07/2025
30
iPhone 17 Air
Latest News

iPhone 17 Air Leak: Full Details on the Super-Thin Design, Features, and Price

Get ready, Apple fans! The internet is buzzing with exciting news about a brand-new iPhone

SoftMaji InfoTech
10/07/2025
27
otpless-issue
Latest News

OTPLess Not Working? Here’s What Happened!

Imagine this: You run a business, and suddenly, your customers can’t log in to your websit

SoftMaji InfoTech
20/06/2025
51
softmaji-header-wbg-min
SoftMaji is one of the affordable web development company in the web development industry. You don’t have to go searching anywhere for finding a reliable web development partner because we have crafted web development solutions that can fill the void left by others in the market.
Services
  • News Portal Development
  • Custom Website Development
  • PHP Website Development
  • Ecommerce Website Development
  • WordPress Website Development
Shortlinks
  • Blog
  • Offers
  • Events
  • Pricing
  • Reviews
  • Portfolio
  • Our Team
  • Payment Options
  • Explore Packages
Company
  • FAQ
  • Careers
  • Sitemap
  • Feedback
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Refund And Cancellation
Contact Us
4/40 Vipul Khand , Gomti Nagar Lucknow
Uttar Pradesh 226010
Landline - +915223162418
Email - hello@softmaji.in
Office Time Mon - Sat
(10:00AM - 5:00PM)
Sunday Close
+91 9795405324
Lucknow , Uttar Pradesh
Copyright © 2016-2025. All Rights Reserved.