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
19
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

Latest News

How To Install WordPress Blog?

Let’s see how to install WordPress blog on your WordPress hosting account. Let’s

Faizan Khan
14/05/2024
147
Latest News

How to Install a Theme in WordPress?

Steps to install a theme in WordPress: Log in to WordPress. Navigate to Appearance and cli

Faizan Khan
14/05/2024
132
Latest News

Fatal error: Allowed memory size of xxxx bytes exhausted (tried to allocate xx bytes)

WordPress is a free open source blogging tool. When posting a article OR uploading a image

Faizan Khan
14/05/2024
145
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 © 2022. All Rights Reserved.